chore: Vector2D.ToString()
This commit is contained in:
parent
75e6e06099
commit
25e3c818ce
|
@ -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})";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue