🎉 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
how do you find the angle (in radians) between 2 points? given the coordinates of the two points
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
|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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement