Пример #1
0
 /// <summary>
 /// Get the angle in degrees between this vector and another vector.
 /// </summary>
 /// <param name="me">This vector.</param>
 /// <param name="other">The other vector.</param>
 /// <returns>The angle between the vectors in degrees.</returns>
 public static double Angle(this Point3D me, Point3D other)
 {
     return(((Math.Acos((me.DotProduct(other) / (me.Magnitude() * other.Magnitude())).Clamp()) * 180 / Math.PI) + 360) % 360);
 }