Exemple #1
0
 static public CardinalDirection GetClosestCardinalDirection(this VectorF2 item)
 {
     return(item.GetAngleInRadians().GetRadianAngleClosestCardinalDirection());
 }
Exemple #2
0
 static public float GetAngleInRadiansDistance(this VectorF2 item, VectorF2 other)
 {
     return(item.GetAngleInRadians().GetRadianAngleDistance(other.GetAngleInRadians()));
 }
Exemple #3
0
 static public VectorF2 GetAdjustDirectionAngleInRadians(this VectorF2 item, float adjustment)
 {
     return(CreateDirection(item.GetAngleInRadians() + adjustment));
 }
Exemple #4
0
 static public HorizontalDirection GetClosestHorizontalDirection(this VectorF2 item)
 {
     return(item.GetAngleInRadians().GetRadianAngleClosestHorizontalDirection());
 }