diff --git a/Engine.Core/Primitives/Vector2D.cs b/Engine.Core/Primitives/Vector2D.cs index 183c13f..0d69f05 100644 --- a/Engine.Core/Primitives/Vector2D.cs +++ b/Engine.Core/Primitives/Vector2D.cs @@ -31,6 +31,11 @@ public readonly struct Vector2D(float x, float y) /// public float MagnitudeSquared => LengthSquared(this); + /// + /// Gets a with the direction reversed. + /// + public readonly Vector2D Reversed => -this; + /// /// The normalized form of the (a with the same direction and a magnitude of 1). ///