Sign in to follow this  
Ebola0001

formula question (finding the angle between two vectors)

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

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