@@ -26,9 +26,12 @@ Struct Vec2<T>
Method New()
End
+ Method New( t:T )
+ x=t;y=t
+ End
+
Method New( x:T,y:T )
- Self.x=x
- Self.y=y
+ Self.x=x;Self.y=y
#rem monkeydoc Converts the vector to a vector of a different type.
@@ -16,9 +16,9 @@ Struct Vec3<T>
-' Method New( v:Vec3 )
-' x=v.x;y=v.y;z=v.z
-' End
+ x=t;y=t;z=t
Method New( x:T,y:T,z:T )
Self.x=x;Self.y=y;Self.z=z
@@ -17,9 +17,9 @@ Struct Vec4<T>
-' Method New( v:Vec4 )
-' x=v.x;y=v.y;z=v.z;w=v.w
+ x=t;y=t;z=t;w=t
Method New( x:T,y:T,z:T,w:T )
Self.x=x;Self.y=y;Self.z=z;Self.w=w