move standalone projects into own directory

This commit is contained in:
2023-04-27 11:39:41 -06:00
parent 5d593e22b0
commit acda704057
369 changed files with 1170 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
package jigsawx.math;
class Vec2{
public var x: Float;
public var y: Float;
public function new( x_ = .0, y_ = .0 ){
x = x_;
y = y_;
}
public function copy() {
return new Vec2(x, y);
}
public function add(dx:Float, dy:Float) {
x += dx;
y += dy;
return this;
}
public function subtract(dx:Float, dy:Float) {
x -= dx;
y -= dy;
return this;
}
public function toString() {
return '(${x}, ${y})';
}
}