🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

angles

Started by
0 comments, last by Toast 23 years ago
how do you find the angle (in radians) between 2 points? given the coordinates of the two points
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
----------------------------www.physicsforums.comwww.opengl.org

This topic is closed to new replies.

Advertisement