feat: Vector2D.Zero
This commit is contained in:
parent
cd0a100224
commit
55bde3bafd
|
@ -13,6 +13,7 @@ public record Vector2D(float X, float Y)
|
|||
public readonly static Vector2D Down = new(0f, -1f);
|
||||
public readonly static Vector2D Left = new(-1f, 0f);
|
||||
public readonly static Vector2D Right = new(1f, 0f);
|
||||
public readonly static Vector2D Zero = new(0f, 0f);
|
||||
public readonly static Vector2D One = new(1f, 1f);
|
||||
|
||||
public static Vector2D operator -(Vector2D vector) => new(0f - vector.X, 0f - vector.Y);
|
||||
|
|
Loading…
Reference in New Issue