From 08f41ccb0b9873efe14b87ec2b9d5d4e499532cf Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Mon, 14 Oct 2024 12:11:14 +0200 Subject: [PATCH] constrained vec to only accept numbers --- src/lib/Vec.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Vec.hx b/src/lib/Vec.hx index 2a60f13..414d31f 100644 --- a/src/lib/Vec.hx +++ b/src/lib/Vec.hx @@ -1,6 +1,6 @@ package lib; -@:structInit class Vec2 { +@:structInit class Vec2 { public var x:T; public var y:T; @@ -10,7 +10,7 @@ package lib; } } -@:structInit class Vec3 { +@:structInit class Vec3 { public var x:T; public var y:T; public var z:T;