C# Class BEPUutilities.Matrix2x2

2 row, 2 column matrix.
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Свойство Type Description
M11 float
M12 float
M21 float
M22 float

Méthodes publiques

Méthode Description
Add ( BEPUutilities.Matrix &a, BEPUutilities.Matrix &b, Matrix2x2 &result ) : void

Adds the two matrices together on a per-element basis.

Add ( BEPUutilities.Matrix &a, Matrix2x2 &b, Matrix2x2 &result ) : void

Adds the two matrices together on a per-element basis.

Add ( Matrix2x2 &a, BEPUutilities.Matrix &b, Matrix2x2 &result ) : void

Adds the two matrices together on a per-element basis.

Add ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void

Adds the two matrices together on a per-element basis.

CreateScale ( float scale, Matrix2x2 &matrix ) : void

Constructs a uniform scaling matrix.

Determinant ( ) : float

Calculates the determinant of the matrix.

Invert ( Matrix2x2 &matrix, Matrix2x2 &result ) : void

Inverts the given matix.

Matrix2x2 ( float m11, float m12, float m21, float m22 ) : Microsoft.Xna.Framework

Constructs a new 2 row, 2 column matrix.

Multiply ( Matrix &a, Matrix2x2 &b, Matrix2x2 &result ) : void

Multiplies the two matrices.

Multiply ( Matrix2x2 &a, Matrix &b, Matrix2x2 &result ) : void

Multiplies the two matrices.

Multiply ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void

Multiplies the two matrices.

Multiply ( Matrix2x3 &a, Matrix3x2 &b, Matrix2x2 &result ) : void

Multiplies the two matrices.

Negate ( Matrix2x2 &matrix, Matrix2x2 &result ) : void

Negates every element in the matrix.

Subtract ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void

Subtracts the two matrices from each other on a per-element basis.

ToString ( ) : string

Creates a string representation of the matrix.

Transform ( Vector2 &v, Matrix2x2 &matrix, Vector2 &result ) : void

Transforms the vector by the matrix.

Transpose ( Matrix2x2 &matrix, Matrix2x2 &result ) : void

Computes the transposed matrix of a matrix.

Method Details

Add() public static méthode

Adds the two matrices together on a per-element basis.
public static Add ( BEPUutilities.Matrix &a, BEPUutilities.Matrix &b, Matrix2x2 &result ) : void
a BEPUutilities.Matrix First matrix to add.
b BEPUutilities.Matrix Second matrix to add.
result Matrix2x2 Sum of the two matrices.
Résultat void

Add() public static méthode

Adds the two matrices together on a per-element basis.
public static Add ( BEPUutilities.Matrix &a, Matrix2x2 &b, Matrix2x2 &result ) : void
a BEPUutilities.Matrix First matrix to add.
b Matrix2x2 Second matrix to add.
result Matrix2x2 Sum of the two matrices.
Résultat void

Add() public static méthode

Adds the two matrices together on a per-element basis.
public static Add ( Matrix2x2 &a, BEPUutilities.Matrix &b, Matrix2x2 &result ) : void
a Matrix2x2 First matrix to add.
b BEPUutilities.Matrix Second matrix to add.
result Matrix2x2 Sum of the two matrices.
Résultat void

Add() public static méthode

Adds the two matrices together on a per-element basis.
public static Add ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void
a Matrix2x2 First matrix to add.
b Matrix2x2 Second matrix to add.
result Matrix2x2 Sum of the two matrices.
Résultat void

CreateScale() public static méthode

Constructs a uniform scaling matrix.
public static CreateScale ( float scale, Matrix2x2 &matrix ) : void
scale float Value to use in the diagonal.
matrix Matrix2x2 Scaling matrix.
Résultat void

Determinant() public méthode

Calculates the determinant of the matrix.
public Determinant ( ) : float
Résultat float

Invert() public static méthode

Inverts the given matix.
public static Invert ( Matrix2x2 &matrix, Matrix2x2 &result ) : void
matrix Matrix2x2 Matrix to be inverted.
result Matrix2x2 Inverted matrix.
Résultat void

Matrix2x2() public méthode

Constructs a new 2 row, 2 column matrix.
public Matrix2x2 ( float m11, float m12, float m21, float m22 ) : Microsoft.Xna.Framework
m11 float Value at row 1, column 1 of the matrix.
m12 float Value at row 1, column 2 of the matrix.
m21 float Value at row 2, column 1 of the matrix.
m22 float Value at row 2, column 2 of the matrix.
Résultat Microsoft.Xna.Framework

Multiply() public static méthode

Multiplies the two matrices.
public static Multiply ( Matrix &a, Matrix2x2 &b, Matrix2x2 &result ) : void
a Matrix First matrix to multiply.
b Matrix2x2 Second matrix to multiply.
result Matrix2x2 Product of the multiplication.
Résultat void

Multiply() public static méthode

Multiplies the two matrices.
public static Multiply ( Matrix2x2 &a, Matrix &b, Matrix2x2 &result ) : void
a Matrix2x2 First matrix to multiply.
b Matrix Second matrix to multiply.
result Matrix2x2 Product of the multiplication.
Résultat void

Multiply() public static méthode

Multiplies the two matrices.
public static Multiply ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void
a Matrix2x2 First matrix to multiply.
b Matrix2x2 Second matrix to multiply.
result Matrix2x2 Product of the multiplication.
Résultat void

Multiply() public static méthode

Multiplies the two matrices.
public static Multiply ( Matrix2x3 &a, Matrix3x2 &b, Matrix2x2 &result ) : void
a Matrix2x3 First matrix to multiply.
b Matrix3x2 Second matrix to multiply.
result Matrix2x2 Product of the multiplication.
Résultat void

Negate() public static méthode

Negates every element in the matrix.
public static Negate ( Matrix2x2 &matrix, Matrix2x2 &result ) : void
matrix Matrix2x2 Matrix to negate.
result Matrix2x2 Negated matrix.
Résultat void

Subtract() public static méthode

Subtracts the two matrices from each other on a per-element basis.
public static Subtract ( Matrix2x2 &a, Matrix2x2 &b, Matrix2x2 &result ) : void
a Matrix2x2 First matrix to subtract.
b Matrix2x2 Second matrix to subtract.
result Matrix2x2 Difference of the two matrices.
Résultat void

ToString() public méthode

Creates a string representation of the matrix.
public ToString ( ) : string
Résultat string

Transform() public static méthode

Transforms the vector by the matrix.
public static Transform ( Vector2 &v, Matrix2x2 &matrix, Vector2 &result ) : void
v Vector2 Vector2 to transform.
matrix Matrix2x2 Matrix to use as the transformation.
result Vector2 Product of the transformation.
Résultat void

Transpose() public static méthode

Computes the transposed matrix of a matrix.
public static Transpose ( Matrix2x2 &matrix, Matrix2x2 &result ) : void
matrix Matrix2x2 Matrix to transpose.
result Matrix2x2 Transposed matrix.
Résultat void

Property Details

M11 public_oe property

Value at row 1, column 1 of the matrix.
public float M11
Résultat float

M12 public_oe property

Value at row 1, column 2 of the matrix.
public float M12
Résultat float

M21 public_oe property

Value at row 2, column 1 of the matrix.
public float M21
Résultat float

M22 public_oe property

Value at row 2, column 2 of the matrix.
public float M22
Résultat float