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.
Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Méthodes publiques

Свойство Type Description
fMatrix TOAPI.Types.XFORM

Méthodes publiques

Méthode 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 méthode

public Affine ( ) : System
Résultat System

Combine() public méthode

public Combine ( XFORM b ) : bool
b TOAPI.Types.XFORM
Résultat bool

Invert() public méthode

public Invert ( ) : bool
Résultat bool

MapTri() public méthode

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
Résultat bool

MapTri() public méthode

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
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void

Rotate() public méthode

public Rotate ( float angle, float x0, float y0 ) : bool
angle float
x0 float
y0 float
Résultat bool

Scale() public méthode

public Scale ( float sx, float sy ) : bool
sx float
sy float
Résultat bool

SetTransform() public méthode

public SetTransform ( XFORM xm ) : bool
xm TOAPI.Types.XFORM
Résultat bool

Translate() public méthode

public Translate ( float dx, float dy ) : bool
dx float
dy float
Résultat bool

minmax() public méthode

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
Résultat void

Property Details

fMatrix public_oe property

public XFORM,TOAPI.Types fMatrix
Résultat TOAPI.Types.XFORM