• Advertisement

Archived

This topic is now archived and is closed to further replies.

angles

This topic is 6052 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how do you find the angle (in radians) between 2 points? given the coordinates of the two points

Share this post


Link to post
Share on other sites
Advertisement
You must mean angle formed by point-origin-point? use the dot product. for point a and point b. |a| means length from origin to a.

|a| * |b| * cos(angle) = (ax*bx)+(ay*by)+(az*bz)

those are the 2 different ways to write the dot product. if you have the x,y,z coordinates of the point you can find the length and solve for angle

Share this post


Link to post
Share on other sites

  • Advertisement