Beispiel #1
0
 public static double AngleBetween(Vector3Double from, Vector3Double to)
 {
     return(Mathd.Acos(Mathd.Clamp(Vector3Double.Dot(from.normalized, to.normalized), -1d, 1d)));
 }
Beispiel #2
0
 public static double Angle(Vector2Double from, Vector2Double to)
 {
     return(Mathd.Acos(Mathd.Clamp(Vector2Double.Dot(from.normalized, to.normalized), -1d, 1d)) * 57.29578d);
 }