constrained vec to only accept numbers

This commit is contained in:
Niklas Kapelle 2024-10-14 12:11:14 +02:00
parent 28ec48cc85
commit 08f41ccb0b
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -1,6 +1,6 @@
package lib;
@:structInit class Vec2<T> {
@:structInit class Vec2<T:Float> {
public var x: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 y:T;
public var z:T;