CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to check relative coordinates?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 31, 2009, 06:59
Default How to check relative coordinates?
Senior Member
sega's Avatar
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
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?

Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   September 1, 2009, 14:09
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
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...
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[UDF] Relative coordinates in logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 24 February 23, 2015 05:33
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Cell check and Boundary check errors AB CD-adapco 4 October 28, 2004 13:04
Coordinate's tranformation tommy FLUENT 0 February 13, 2004 03:19
Calculation in cylindrical coordinates Franz Wingelhofer CFX 0 December 28, 1999 08:46

All times are GMT -4. The time now is 21:11.