|
@@ -100,14 +100,14 @@ Struct AffineMat3<T>
|
|
|
|
|
|
#rem monkeydoc Applies a translation transformation to the matrix and returns the result.
|
|
#rem monkeydoc Applies a translation transformation to the matrix and returns the result.
|
|
#end
|
|
#end
|
|
- Method Translate:AffineMat3( v:Vec2<T> )
|
|
|
|
- Return Transform( 1,0,0,1,v.x,v.y )
|
|
|
|
- End
|
|
|
|
-
|
|
|
|
Method Translate:AffineMat3( tx:T,ty:T )
|
|
Method Translate:AffineMat3( tx:T,ty:T )
|
|
Return Transform( 1,0,0,1,tx,ty )
|
|
Return Transform( 1,0,0,1,tx,ty )
|
|
End
|
|
End
|
|
|
|
|
|
|
|
+ Method Translate:AffineMat3( tv:Vec2<T> )
|
|
|
|
+ Return Transform( 1,0,0,1,tv.x,tv.y )
|
|
|
|
+ End
|
|
|
|
+
|
|
#rem monkeydoc Applies a rotation transformation to the matrix and returns the result.
|
|
#rem monkeydoc Applies a rotation transformation to the matrix and returns the result.
|
|
#end
|
|
#end
|
|
Method Rotate:AffineMat3( rz:Double )
|
|
Method Rotate:AffineMat3( rz:Double )
|
|
@@ -116,14 +116,34 @@ Struct AffineMat3<T>
|
|
|
|
|
|
#rem monkeydoc Applies a scale transformation to the matrix and returns the result.
|
|
#rem monkeydoc Applies a scale transformation to the matrix and returns the result.
|
|
#end
|
|
#end
|
|
- Method Scale:AffineMat3( v:Vec2<T> )
|
|
|
|
- Return Transform( v.x,0,0,v.y,0,0 )
|
|
|
|
- End
|
|
|
|
-
|
|
|
|
Method Scale:AffineMat3( sx:T,sy:T )
|
|
Method Scale:AffineMat3( sx:T,sy:T )
|
|
Return Transform( sx,0,0,sy,0,0 )
|
|
Return Transform( sx,0,0,sy,0,0 )
|
|
End
|
|
End
|
|
|
|
|
|
|
|
+ Method Scale:AffineMat3( sv:Vec2<T> )
|
|
|
|
+ Return Transform( sv.x,0,0,sv.y,0,0 )
|
|
|
|
+ End
|
|
|
|
+
|
|
|
|
+ Function Translation:AffineMat3( tx:T,ty:T )
|
|
|
|
+ Return New AffineMat3( 1,0,0,1,tx,ty )
|
|
|
|
+ End
|
|
|
|
+
|
|
|
|
+ Function Translation:AffineMat3( tv:Vec2<T> )
|
|
|
|
+ Return New AffineMat3( 1,0,0,1,tv.x,tv.y )
|
|
|
|
+ End
|
|
|
|
+
|
|
|
|
+ Function Rotation:AffineMat3( rz:Double )
|
|
|
|
+ Return New AffineMat3( Cos( rz ),-Sin( rz ),Sin( rz ),Cos( rz ),0,0 )
|
|
|
|
+ End
|
|
|
|
+
|
|
|
|
+ Function Scaling:AffineMat3( sx:T,sy:T )
|
|
|
|
+ Return New AffineMat3( sx,0,0,sy,0,0 )
|
|
|
|
+ End
|
|
|
|
+
|
|
|
|
+ Function Scaling:AffineMat3( sv:Vec2<T> )
|
|
|
|
+ Return New AffineMat3( sv.x,0,0,sv.y,0,0 )
|
|
|
|
+ End
|
|
|
|
+
|
|
#rem monkeydoc @hidden
|
|
#rem monkeydoc @hidden
|
|
#end
|
|
#end
|
|
Function Ortho:AffineMat3( left:T,right:T,bottom:T,top:T )
|
|
Function Ortho:AffineMat3( left:T,right:T,bottom:T,top:T )
|