From c94c2dc75712641247c8c55e71b7bcbc4d7fc24c Mon Sep 17 00:00:00 2001 From: Thibaud Date: Fri, 21 Aug 2026 15:33:56 +0200 Subject: [PATCH] Update vec.ts --- vec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vec.ts b/vec.ts index da8c318..1477b0c 100644 --- a/vec.ts +++ b/vec.ts @@ -82,7 +82,11 @@ export default class Vec2d implements Point { ); } - wrap(bounds: Vec2d) { + wrap(bounds: Vec2d): Vec2d { return new Vec2d(trueMod(this.x, bounds.x), trueMod(this.y, bounds.y)); } + + rotateLeft(): Vec2d { + return new Vec2d(-this.y, this.x); + } }