Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualStroppy Katamari

Posted 03 January 2013 - 01:37 PM

The dot product of the two (normalized) vectors is the cosine of the angle you want.
So after you have taken the dot product, you feed the result to acos()/arccos()/whatever, and you have the angle.
It will be in radians instead of degrees; if you are more comfortable thinking in degrees, you can convert between the two.
Full circle is 2*pi radians or 360 degrees, so if angle X is "Xdeg" in degrees and "Xrad" in radians, Xdeg = 360 / (2 * pi) * Xrad, and Xrad = 2*pi / 360 * Xdeg.

#1Stroppy Katamari

Posted 03 January 2013 - 01:36 PM

The dot product of the two (normalized) vectors is the cosine of the angle you want.<br />So after you have taken the dot product, you feed the result to acos()/arccos()/whatever, and you have the angle.<br />It will be in radians instead of degrees; if you are more comfortable thinking in degrees, you can convert between the two.<br />Full circle is 2*pi radians or 360 degrees, so if angle X is "Xdeg" in degrees and "Xrad" in radians, Xdeg = 360 / (2 * pi) * Xrad, and Xrad = 2*pi / 360 * Xdeg.

PARTNERS