CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   How to check relative coordinates? (

sega August 31, 2009 06:59

How to check relative coordinates?
Hello World.

I need to check if three points form a plane and are not aligned in a line.
Can anyone tell me how this could be done?


l_r_mcglashan September 1, 2009 14:09

If you have points 1,2 and 3, the cross product of vector 1->2 and 1->3 will be zero if they all lie on the same line.

I think...

All times are GMT -4. The time now is 06:39.