I'd like to perform rotation from one vector to the other. I have two formulaes to get sin(X) and cos(X), X being the rotation angle, but I can't see where they come from :
denom = a * a + b * b;
sin(X) = ( b * ta - a * tb ) / denom;
cos(X) = ( a * ta + b * tb ) / denom;
Can somebody help me to clear this out ?
Thanks
denomvariable is a big hint. The numerators are not familiar to me, but I'm guessing they are due to a transformation matrix. – abiessu Aug 14 '13 at 14:58