Exemplo n.º 1
0
 public static double AngleBetween(Vector3d from, Vector3d to)
 {
     return(Mathd.Acos(Mathd.Clamp(Dot(from.normalized, to.normalized), -1d, 1d)));
 }
Exemplo n.º 2
0
 public static double Angle(Vector3d from, Vector3d to)
 {
     return(Mathd.Acos(Mathd.Clamp(Dot(from.normalized, to.normalized), -1d, 1d)) * 57.29578d);
 }