- #1
sparkzbarca
- 7
- 0
basically i have a problem where i am rotating 1 vector to be parallel to another
i get the axis of rotation by the cross product of the 2 vectors
the angle by the arctangent of the magnitude of the axis and the dot product of the 2 vectors
however
arctangent2(magnitude(axis) , dotproduct(vector1,vector2))
is quite intensive I BELIEVE BECAUSE magnitude is a sqr root.
i'm wondering if could just do some kind of axis squared and dot product square or something
and still get the right angle.
Hope this makes sense.
i get the axis of rotation by the cross product of the 2 vectors
the angle by the arctangent of the magnitude of the axis and the dot product of the 2 vectors
however
arctangent2(magnitude(axis) , dotproduct(vector1,vector2))
is quite intensive I BELIEVE BECAUSE magnitude is a sqr root.
i'm wondering if could just do some kind of axis squared and dot product square or something
and still get the right angle.
Hope this makes sense.