CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to check relative coordinates? (http://www.cfd-online.com/Forums/openfoam-programming-development/67913-how-check-relative-coordinates.html)

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?

S.

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 19:27.