chore: Vector2D.ToString()

This commit is contained in:
Syntriax 2024-01-22 18:49:51 +03:00
parent 75e6e06099
commit 25e3c818ce
1 changed files with 2 additions and 0 deletions

View File

@ -30,4 +30,6 @@ public record Vector2D(float X, float Y)
public static float Cross(Vector2D left, Vector2D right) => left.X * right.Y - left.Y * right.X;
public static float Angle(Vector2D left, Vector2D right) => MathF.Acos(Dot(left, right) / (Length(left) * Length(right)));
public static float Dot(Vector2D left, Vector2D right) => left.X * right.X + left.Y * right.Y;
public override string ToString() => $"Vector2D({X}, {Y})";
}