Sign in to follow this  

formula question (finding the angle between two vectors)

This topic is 4095 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

The tutorial on the triple buffer math primer, lists the formula to find the angle between two vectors (V and U) as... V.U = |V| * |U| * cos(angle) My question is in order to get the angle from two vectors, I think I need to do... acos(|U| / |V| / (V.U)) = angle Is this right?

Share this post


Link to post
Share on other sites
V.U = |V| * |U| * cos(angle)

V.U / cos(angle) = |V| * |U|

1 / cos(angle) = (|V| * |U|) / (V.U)

cos(angle) = (V.U) / (|V| * |U|)

angle = acos((V.U) / (|V| * |U|))

i think, unless i screwed something up in the math there...have a tendency to forget stuff when doing math, especially when trig's involved :)

Share this post


Link to post
Share on other sites

This topic is 4095 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this