diff --git a/Engine.Core/Vector2D.cs b/Engine.Core/Vector2D.cs index 3de9a5e..172d903 100644 --- a/Engine.Core/Vector2D.cs +++ b/Engine.Core/Vector2D.cs @@ -77,7 +77,7 @@ public readonly struct Vector2D(float x, float y) /// /// The . /// The length of the . - public static float Length(Vector2D vector) => MathF.Sqrt(LengthSquared(vector)); + public static float Length(Vector2D vector) => Math.Sqrt(LengthSquared(vector)); /// /// Calculates the squared length of the . @@ -184,7 +184,7 @@ public readonly struct Vector2D(float x, float y) /// The to rotate. /// The angle to rotate by, in radians. /// The rotated . - public static Vector2D Rotate(Vector2D vector, float angleInRadian) => new(MathF.Cos(angleInRadian) * vector.X - MathF.Sin(angleInRadian) * vector.Y, MathF.Sin(angleInRadian) * vector.X + MathF.Cos(angleInRadian) * vector.Y); + public static Vector2D Rotate(Vector2D vector, float angleInRadian) => new(Math.Cos(angleInRadian) * vector.X - Math.Sin(angleInRadian) * vector.Y, Math.Sin(angleInRadian) * vector.X + Math.Cos(angleInRadian) * vector.Y); /// /// Returns the component-wise minimum of two s. @@ -234,7 +234,7 @@ public readonly struct Vector2D(float x, float y) /// The first . /// The second . /// The angle between the two s in radians. - public static float Angle(Vector2D left, Vector2D right) => MathF.Acos(Dot(left, right) / (Length(left) * Length(right))); + public static float Angle(Vector2D left, Vector2D right) => Math.Acos(Dot(left, right) / (Length(left) * Length(right))); /// /// Calculates the dot product of two s.