Advertisement

trig question :)

Started by June 06, 2003 01:42 AM
1 comment, last by pag 21 years, 8 months ago
If I have point p1(2,2) and point p2(16, 24) and the angle ''a'' which is the angle between the two points. Is then the distance ''d'' between these points: d = (p1.x-p2.x)/cos(a); d = (p1.y-p2.y)/sin(a); ? just need to see if im right on the track..
I am a signature virus. Please add me to your signature so that I may multiply.
eh I know how to get the length with the sqrt function... this is a trigometry question hence the title, not a phytoblaha(dunno how to spell it)...

thanks anyways
I am a signature virus. Please add me to your signature so that I may multiply.
Advertisement
There never exist an angle between two points but between two vectors. So if you meant the points to be vectors then the answer to your question is "no". But if ''a'' is the shortest angle between a vector that goes from p1 to p2 and the x-axis then you could calculate the distance by

d = abs(p2.x-p1.x)/cos(a)

and also

d = abs(p2.y-p1.y)/sin(a)

eloso

This topic is closed to new replies.

Advertisement