constrained vec to only accept numbers
This commit is contained in:
parent
28ec48cc85
commit
08f41ccb0b
@ -1,6 +1,6 @@
|
|||||||
package lib;
|
package lib;
|
||||||
|
|
||||||
@:structInit class Vec2<T> {
|
@:structInit class Vec2<T:Float> {
|
||||||
public var x:T;
|
public var x:T;
|
||||||
public var y:T;
|
public var y:T;
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ package lib;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@:structInit class Vec3<T> {
|
@:structInit class Vec3<T:Float> {
|
||||||
public var x:T;
|
public var x:T;
|
||||||
public var y:T;
|
public var y:T;
|
||||||
public var z:T;
|
public var z:T;
|
||||||
|
Loading…
Reference in New Issue
Block a user