C# Class SWFProcessing.ModellingUtils.Geom.Matrix

A 2D matrix
Datei anzeigen Open project: WeeWorld/Swiffotron Class Usage Examples

Public Methods

Method 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 method

public Apply ( Matrix m ) : void
m Matrix
return void

Copy() public method

public Copy ( ) : Matrix
return Matrix

Matrix() public method

Initializes a new instance of an identity matrix
public Matrix ( ) : System
return System

Matrix() public method

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

Matrix() public method

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
return System

RotateToDegrees() public method

public RotateToDegrees ( double angle ) : void
angle double
return void

ScaleNoTranslate() public method

public ScaleNoTranslate ( float xscale, float yscale ) : void
xscale float
yscale float
return void

ToString() public method

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

Translate() public method

public Translate ( float tx, float ty ) : void
tx float
ty float
return void