Exemple #1
0
 public static Vector2d GetAngleVectorDeg(double degrees)
 {
     return(FlaiMath.GetAngleVector(FlaiMath.ToRadians(degrees)));
 }
Exemple #2
0
 public static Vector2f GetAngleVectorDeg(float degrees)
 {
     return(FlaiMath.GetAngleVector(FlaiMath.ToRadians(degrees)));
 }
Exemple #3
0
 public static float WrapAngleDeg(float angle)
 {
     return(FlaiMath.ToDegrees(FlaiMath.WrapAngle(FlaiMath.ToRadians(angle))));
 }
Exemple #4
0
 // deg
 public static float ShortestAngleDistanceDeg(float angle1, float angle2)
 {
     return(FlaiMath.ToDegrees(FlaiMath.ShortestAngleDistance(FlaiMath.ToRadians(angle1), FlaiMath.ToRadians(angle2))));
 }
 private TransformedRectangleF(RectangleF rectangle, Vector2f origin, float rotation)
 {
     _rectangle = rectangle;
     _origin    = origin;
     _rotation  = FlaiMath.ToRadians(rotation);
 }
Exemple #6
0
 public static float ToRadians(this Direction2D direction)
 {
     return(FlaiMath.ToRadians(direction.ToDegrees()));
 }