set by direction code
set by vector
returns Y axis rotation angle in degrees (0, 90, 180, 270)
See Implementation