View Full Version : QUICK URGENT question

 zoster07 July 2007, 02:48 PMhowdy, i have this small dilemma: if i have 2 points on a wavy curve, and i want to find out the coordonates of the point that is at the same curve lenghth from the other 2, and sits on the curve, what could i do? help would be very appreciated
07 July 2007, 08:57 PM
ok... if I understood you right. wavy curve. on the curve are 2 points. between the points with same distance and on the curve too is another point and you like to get the coordinates in world space.

if you know where on the curve the point is, you could use pointOnCurve command.

zoster
07 July 2007, 11:58 PM
no, i don't have that 3rd point..

trancor
07 July 2007, 12:07 AM
Yeah, I didn't really understand that either.

pointPosition or pointOnCurve of the two different points, to find the distance between the two points use mag --

if you have -
vector point1
vector point2

use -

float \$mag=mag(point1-point2);

This will return the distance between the two points, but as a linear line between them.

CGTalk Moderation
07 July 2007, 12:07 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.

1