C# Class Transform2D, NanoGUI

Mostra file Open project: hxflyer/NanoGUI Class Usage Examples

Public Properties

Property Type Description
a float
b float
c float
d float
target DisplayObject,
tx float
ty float
u float
v float
w float

Public Methods

Method Description
ToString ( ) : string
Transform2D ( ) : System.Collections
Transform2D ( float a, float b, float c, float d, float tx, float ty ) : System.Collections
Transform2D ( float a, float b, float c, float d, float tx, float ty, float u, float v, float w ) : System.Collections
clone ( ) : Transform2D,
getBoundRect ( Rect rect ) : Rect
getBoundRect ( Vector2 minPos, Vector2 maxPos ) : Rect
getInverted ( ) : Transform2D,
identity ( ) : void
invert ( ) : void
multiply ( Transform2D, mtx1, Transform2D, mtx2 ) : Transform2D,
rotate ( float rad ) : void
scale ( float x, float y ) : void
setTranslate ( float x, float y ) : void
setTranslateX ( float t ) : void
setTranslateY ( float t ) : void
transformVector ( Vector2 vec ) : Vector2
translateX ( float t ) : void
translateY ( float t ) : void

Method Details

ToString() public method

public ToString ( ) : string
return string

Transform2D() public method

public Transform2D ( ) : System.Collections
return System.Collections

Transform2D() public method

public Transform2D ( float a, float b, float c, float d, float tx, float ty ) : System.Collections
a float
b float
c float
d float
tx float
ty float
return System.Collections

Transform2D() public method

public Transform2D ( float a, float b, float c, float d, float tx, float ty, float u, float v, float w ) : System.Collections
a float
b float
c float
d float
tx float
ty float
u float
v float
w float
return System.Collections

clone() public method

public clone ( ) : Transform2D,
return Transform2D,

getBoundRect() public method

public getBoundRect ( Rect rect ) : Rect
rect Rect
return Rect

getBoundRect() public method

public getBoundRect ( Vector2 minPos, Vector2 maxPos ) : Rect
minPos Vector2
maxPos Vector2
return Rect

getInverted() public method

public getInverted ( ) : Transform2D,
return Transform2D,

identity() public method

public identity ( ) : void
return void

invert() public method

public invert ( ) : void
return void

multiply() public static method

public static multiply ( Transform2D, mtx1, Transform2D, mtx2 ) : Transform2D,
mtx1 Transform2D,
mtx2 Transform2D,
return Transform2D,

rotate() public method

public rotate ( float rad ) : void
rad float
return void

scale() public method

public scale ( float x, float y ) : void
x float
y float
return void

setTranslate() public method

public setTranslate ( float x, float y ) : void
x float
y float
return void

setTranslateX() public method

public setTranslateX ( float t ) : void
t float
return void

setTranslateY() public method

public setTranslateY ( float t ) : void
t float
return void

transformVector() public method

public transformVector ( Vector2 vec ) : Vector2
vec Vector2
return Vector2

translateX() public method

public translateX ( float t ) : void
t float
return void

translateY() public method

public translateY ( float t ) : void
t float
return void

Property Details

a public_oe property

public float a
return float

b public_oe property

public float b
return float

c public_oe property

public float c
return float

d public_oe property

public float d
return float

target public_oe property

public DisplayObject, target
return DisplayObject,

tx public_oe property

public float tx
return float

ty public_oe property

public float ty
return float

u public_oe property

public float u
return float

v public_oe property

public float v
return float

w public_oe property

public float w
return float