crop jigsawpiece points

This commit is contained in:
2022-08-13 18:52:57 +00:00
parent 704c1e8c2f
commit d3830a9bb7
2 changed files with 20 additions and 0 deletions

View File

@@ -9,6 +9,14 @@ class Vec2{
public function copy() {
return new Vec2(x, y);
}
public function add(dx:Float, dy:Float) {
x += dx;
y += dy;
}
public function subtract(dx:Float, dy:Float) {
x -= dx;
y -= dy;
}
public function toString() {
return '(${x}, ${y})';
}