C# Class SWFProcessing.ModellingUtils.Geom.Matrix

A 2D matrix
Afficher le fichier Open project: WeeWorld/Swiffotron Class Usage Examples

Méthodes publiques

Méthode Description
Apply ( Matrix m ) : void
Copy ( ) : Matrix
Matrix ( ) : System

Initializes a new instance of an identity matrix

Matrix ( float tx, float ty ) : System

Initializes a new instance of an translation matrix

Matrix ( float tx, float ty, float sx, float sy, float rx, float ry ) : System

Initializes a new instance of a matrix

RotateToDegrees ( double angle ) : void
ScaleNoTranslate ( float xscale, float yscale ) : void
ToString ( ) : string

Renders the matrix as a string. Used only in test/debug console output.

Translate ( float tx, float ty ) : void

Method Details

Apply() public méthode

public Apply ( Matrix m ) : void
m Matrix
Résultat void

Copy() public méthode

public Copy ( ) : Matrix
Résultat Matrix

Matrix() public méthode

Initializes a new instance of an identity matrix
public Matrix ( ) : System
Résultat System

Matrix() public méthode

Initializes a new instance of an translation matrix
public Matrix ( float tx, float ty ) : System
tx float
ty float
Résultat System

Matrix() public méthode

Initializes a new instance of a matrix
public Matrix ( float tx, float ty, float sx, float sy, float rx, float ry ) : System
tx float Translate X value
ty float Translate Y value
sx float Scale X value
sy float Scale Y value
rx float Rotate (Skew) X value
ry float Rotate (Skew) Y value
Résultat System

RotateToDegrees() public méthode

public RotateToDegrees ( double angle ) : void
angle double
Résultat void

ScaleNoTranslate() public méthode

public ScaleNoTranslate ( float xscale, float yscale ) : void
xscale float
yscale float
Résultat void

ToString() public méthode

Renders the matrix as a string. Used only in test/debug console output.
public ToString ( ) : string
Résultat string

Translate() public méthode

public Translate ( float tx, float ty ) : void
tx float
ty float
Résultat void