Hello
I bumped into something funny while I was trying to run a little VB script.
I don't know VB script to good so I don't know if there is a better way but I calculated the Angle between two Vectors like this :
W = Acos((V1.x * DIR.x + V1.y * Dir.y + V1.z * Dir.z) / (V1.length * Dir.Length))
Acos( dot product(V1,V2) / ( LengthV1*LengthV2 ) )
However here is a bit of the output I get :
Acos(1) =0
Acos(1) =NaN
Anyboody any Idea ?
Tags: