C# Class Affine, NewTOAPIA

Affine is a class used to perform Affine transforms on a matrix. Affine transforms are those which can be mathematically reversed. Examples include translation, scaling, shearing, and the like.
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
fMatrix TOAPI.Types.XFORM

Public Methods

Method Description
Affine ( ) : System
Combine ( XFORM b ) : bool
Invert ( ) : bool
MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0 ) : bool
MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0, float px1, float py1, float qx1, float qy1, float rx1, float ry1 ) : bool
Reset ( ) : void
Rotate ( float angle, float x0, float y0 ) : bool
Scale ( float sx, float sy ) : bool
SetTransform ( XFORM xm ) : bool
Translate ( float dx, float dy ) : bool
minmax ( int x0, int x1, int x2, int x3, int &minx, int &maxx ) : void

Method Details

Affine() public method

public Affine ( ) : System
return System

Combine() public method

public Combine ( XFORM b ) : bool
b TOAPI.Types.XFORM
return bool

Invert() public method

public Invert ( ) : bool
return bool

MapTri() public method

public MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0 ) : bool
px0 float
py0 float
qx0 float
qy0 float
rx0 float
ry0 float
return bool

MapTri() public method

public MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0, float px1, float py1, float qx1, float qy1, float rx1, float ry1 ) : bool
px0 float
py0 float
qx0 float
qy0 float
rx0 float
ry0 float
px1 float
py1 float
qx1 float
qy1 float
rx1 float
ry1 float
return bool

Reset() public method

public Reset ( ) : void
return void

Rotate() public method

public Rotate ( float angle, float x0, float y0 ) : bool
angle float
x0 float
y0 float
return bool

Scale() public method

public Scale ( float sx, float sy ) : bool
sx float
sy float
return bool

SetTransform() public method

public SetTransform ( XFORM xm ) : bool
xm TOAPI.Types.XFORM
return bool

Translate() public method

public Translate ( float dx, float dy ) : bool
dx float
dy float
return bool

minmax() public method

public minmax ( int x0, int x1, int x2, int x3, int &minx, int &maxx ) : void
x0 int
x1 int
x2 int
x3 int
minx int
maxx int
return void

Property Details

fMatrix public property

public XFORM,TOAPI.Types fMatrix
return TOAPI.Types.XFORM