C# Класс BEPUutilities.Matrix2x3

2 row, 3 column matrix.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
M11 float
M12 float
M13 float
M21 float
M22 float
M23 float

Открытые методы

Метод Описание
Add ( Matrix2x3 &a, Matrix2x3 &b, Matrix2x3 &result ) : void

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

Matrix2x3 ( float m11, float m12, float m13, float m21, float m22, float m23 ) : Microsoft.Xna.Framework

Constructs a new 2 row, 2 column matrix.

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

Multiplies the two matrices.

Multiply ( Matrix2x3 &a, Matrix3x3 &b, Matrix2x3 &result ) : void

Multiplies the two matrices.

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

Negates every element in the matrix.

Subtract ( Matrix2x3 &a, Matrix2x3 &b, Matrix2x3 &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, Matrix2x3 &matrix, Microsoft.Xna.Framework.Vector3 &result ) : void

Transforms the vector by the matrix.

Transform ( Microsoft.Xna.Framework.Vector3 &v, Matrix2x3 &matrix, Vector2 &result ) : void

Transforms the vector by the matrix.

Transpose ( Matrix2x3 &matrix, Matrix3x2 &result ) : void

Computes the transposed matrix of a matrix.

Описание методов

Add() публичный статический Метод

Adds the two matrices together on a per-element basis.
public static Add ( Matrix2x3 &a, Matrix2x3 &b, Matrix2x3 &result ) : void
a Matrix2x3 First matrix to add.
b Matrix2x3 Second matrix to add.
result Matrix2x3 Sum of the two matrices.
Результат void

Matrix2x3() публичный Метод

Constructs a new 2 row, 2 column matrix.
public Matrix2x3 ( float m11, float m12, float m13, float m21, float m22, float m23 ) : 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.
m13 float Value at row 1, column 3 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.
m23 float Value at row 2, column 3 of the matrix.
Результат Microsoft.Xna.Framework

Multiply() публичный статический Метод

Multiplies the two matrices.
public static Multiply ( Matrix2x3 &a, Matrix &b, Matrix2x3 &result ) : void
a Matrix2x3 First matrix to multiply.
b Matrix Second matrix to multiply.
result Matrix2x3 Product of the multiplication.
Результат void

Multiply() публичный статический Метод

Multiplies the two matrices.
public static Multiply ( Matrix2x3 &a, Matrix3x3 &b, Matrix2x3 &result ) : void
a Matrix2x3 First matrix to multiply.
b Matrix3x3 Second matrix to multiply.
result Matrix2x3 Product of the multiplication.
Результат void

Negate() публичный статический Метод

Negates every element in the matrix.
public static Negate ( Matrix2x3 &matrix, Matrix2x3 &result ) : void
matrix Matrix2x3 Matrix to negate.
result Matrix2x3 Negated matrix.
Результат void

Subtract() публичный статический Метод

Subtracts the two matrices from each other on a per-element basis.
public static Subtract ( Matrix2x3 &a, Matrix2x3 &b, Matrix2x3 &result ) : void
a Matrix2x3 First matrix to subtract.
b Matrix2x3 Second matrix to subtract.
result Matrix2x3 Difference of the two matrices.
Результат void

ToString() публичный Метод

Creates a string representation of the matrix.
public ToString ( ) : string
Результат string

Transform() публичный статический Метод

Transforms the vector by the matrix.
public static Transform ( Vector2 &v, Matrix2x3 &matrix, Microsoft.Xna.Framework.Vector3 &result ) : void
v Microsoft.Xna.Framework.Vector2 Vector2 to transform. Considered to be a row vector for purposes of multiplication.
matrix Matrix2x3 Matrix to use as the transformation.
result Microsoft.Xna.Framework.Vector3 Row vector product of the transformation.
Результат void

Transform() публичный статический Метод

Transforms the vector by the matrix.
public static Transform ( Microsoft.Xna.Framework.Vector3 &v, Matrix2x3 &matrix, Vector2 &result ) : void
v Microsoft.Xna.Framework.Vector3 Vector2 to transform. Considered to be a column vector for purposes of multiplication.
matrix Matrix2x3 Matrix to use as the transformation.
result Microsoft.Xna.Framework.Vector2 Column vector product of the transformation.
Результат void

Transpose() публичный статический Метод

Computes the transposed matrix of a matrix.
public static Transpose ( Matrix2x3 &matrix, Matrix3x2 &result ) : void
matrix Matrix2x3 Matrix to transpose.
result Matrix3x2 Transposed matrix.
Результат void

Описание свойств

M11 публичное свойство

Value at row 1, column 1 of the matrix.
public float M11
Результат float

M12 публичное свойство

Value at row 1, column 2 of the matrix.
public float M12
Результат float

M13 публичное свойство

Value at row 1, column 2 of the matrix.
public float M13
Результат float

M21 публичное свойство

Value at row 2, column 1 of the matrix.
public float M21
Результат float

M22 публичное свойство

Value at row 2, column 2 of the matrix.
public float M22
Результат float

M23 публичное свойство

Value at row 2, column 3 of the matrix.
public float M23
Результат float