Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Algorithm for orientation of a 2d vector?

Name: Anonymous 2008-07-20 19:40

Hey; I was wondering if there is a simple algorithm that takes an x and y value (the values of the vector), and returns the angle between north and the vector, clockwise? All that I learned in trig class back in school has left me, and Google isn't giving me anything useful.

Name: Anonymous 2008-07-29 7:55

>>16
It's not wrong you dumbfuck!!!!
Goddamn why do


    member v.DegreesFromNorth
       with get() =
          let z = acos(currDY/v.Length) * 57.2957795
          if (currDX > 0.0) then z
          else 360.0 - z

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List