Beispiel #1
0
 static public VectorF2 CreateDirection(float degrees)
 {
     return(new VectorF2(TrigDegree.Cos(degrees), TrigDegree.Sin(degrees)));
 }
Beispiel #2
0
 static public float GetAngleInDegrees(this VectorF2 item)
 {
     return(TrigDegree.Atan2(item.y, item.x));
 }