Files
kiss-vscode/projects/flixel-desktop-habit-puzzle-game/source/jigsawx/math/Vec2.hx

16 lines
305 B
Haxe

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 toString() {
return '(${x}, ${y})';
}
}