diff --git a/src/lib/Vec.hx b/src/lib/Vec.hx index 12472e8..2a60f13 100644 --- a/src/lib/Vec.hx +++ b/src/lib/Vec.hx @@ -3,10 +3,21 @@ package lib; @:structInit class Vec2 { public var x:T; public var y:T; + + public function new(x:T, y:T) { + this.x = x; + this.y = y; + } } @:structInit class Vec3 { public var x:T; public var y:T; public var z:T; + + public function new(x:T, y:T, z:T) { + this.x = x; + this.y = y; + this.z = z; + } }