Update vec.ts

This commit is contained in:
2026-08-21 15:33:56 +02:00
parent 777898acfb
commit c94c2dc757
+5 -1
View File
@@ -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)); return new Vec2d(trueMod(this.x, bounds.x), trueMod(this.y, bounds.y));
} }
rotateLeft(): Vec2d {
return new Vec2d(-this.y, this.x);
}
} }