C# Class Sharpex2D.Math.Matrix2x3

ファイルを表示 Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Properties

Property Type Description
Identity Matrix2x3

Public Methods

Method Description
ApplyTo ( Vector2 point ) : Vector2

Applies this matrix to a point.

ApplyTo ( Vector2 points ) : Vector2[]

Applies this matrix to an array of vectors.

Invert ( ) : Matrix2x3

Returns the inverse matrix of this matrix.

Multiply ( Matrix2x3 left, Matrix2x3 right ) : Matrix2x3

Multiplies two matrices.

Rotation ( float angle ) : Matrix2x3

Creates a rotation matrix.

Scaling ( float factor ) : Matrix2x3

Creates a scaling matrix.

Scaling ( float factorX, float factorY ) : Matrix2x3

Creates a scaling matrix.

ShearingX ( float value ) : Matrix2x3

Creates a shearing matrix.

ShearingY ( float value ) : Matrix2x3

Creates a shearing matrix.

Translation ( Vector2 vector ) : Matrix2x3

Creates a translation matrix.

Translation ( float x, float y ) : Matrix2x3

Creates a translation matrix.

operator ( ) : Matrix2x3

Multiplies two matrices.

this ( int x, int y ) : float

Returns or sets the matrix element at the given Position.

Private Methods

Method Description
Matrix2x3 ( ) : System

Initializes a new Matrix2x3 class.

MultiplyRow ( int row, float factor ) : void

Multiplies the rows.

SubtractRows ( int row1, int row2, float factor ) : void

Subtracts the rows.

SwapRows ( ) : void

Swaps the rows.

Method Details

ApplyTo() public method

Applies this matrix to a point.
public ApplyTo ( Vector2 point ) : Vector2
point Vector2
return Vector2

ApplyTo() public method

Applies this matrix to an array of vectors.
public ApplyTo ( Vector2 points ) : Vector2[]
points Vector2
return Vector2[]

Invert() public method

Returns the inverse matrix of this matrix.
public Invert ( ) : Matrix2x3
return Matrix2x3

Multiply() public static method

Multiplies two matrices.
public static Multiply ( Matrix2x3 left, Matrix2x3 right ) : Matrix2x3
left Matrix2x3 The left matrix.
right Matrix2x3 The right matrix.
return Matrix2x3

Rotation() public static method

Creates a rotation matrix.
public static Rotation ( float angle ) : Matrix2x3
angle float The Angle.
return Matrix2x3

Scaling() public static method

Creates a scaling matrix.
public static Scaling ( float factor ) : Matrix2x3
factor float The Factor.
return Matrix2x3

Scaling() public static method

Creates a scaling matrix.
public static Scaling ( float factorX, float factorY ) : Matrix2x3
factorX float The X Factor.
factorY float The Y Factor.
return Matrix2x3

ShearingX() public static method

Creates a shearing matrix.
public static ShearingX ( float value ) : Matrix2x3
value float The Value.
return Matrix2x3

ShearingY() public static method

Creates a shearing matrix.
public static ShearingY ( float value ) : Matrix2x3
value float The Value.
return Matrix2x3

Translation() public static method

Creates a translation matrix.
public static Translation ( Vector2 vector ) : Matrix2x3
vector Vector2 The Vector.
return Matrix2x3

Translation() public static method

Creates a translation matrix.
public static Translation ( float x, float y ) : Matrix2x3
x float The X.
y float The Y.
return Matrix2x3

operator() public static method

Multiplies two matrices.
public static operator ( ) : Matrix2x3
return Matrix2x3

this() public method

Returns or sets the matrix element at the given Position.
public this ( int x, int y ) : float
x int
y int
return float

Property Details

Identity public_oe static_oe property

The identity matrix.
public static Matrix2x3,Sharpex2D.Math Identity
return Matrix2x3