예제 #1
0
 static public Facing.Direction ToDirection(this Vector2 a_vector, bool a_cardinalOnly = false)
 {
     if (a_cardinalOnly)
     {
         return(Facing.VectorToDirectionCardinal(a_vector));
     }
     return(Facing.VectorToDirection(a_vector));
 }