C# 클래스 BEPUutilities.Matrix3x2

3 row, 2 column matrix.
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
M11 float
M12 float
M21 float
M22 float
M31 float
M32 float

공개 메소드들

메소드 설명
Add ( Matrix3x2 &a, Matrix3x2 &b, Matrix3x2 &result ) : void

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

Matrix3x2 ( float m11, float m12, float m21, float m22, float m31, float m32 ) : Microsoft.Xna.Framework

Constructs a new 3 row, 2 column matrix.

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

Multiplies the two matrices.

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

Multiplies the two matrices.

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

Negates every element in the matrix.

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

Transforms the vector by the matrix.

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

Transforms the vector by the matrix.

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

Computes the transposed matrix of a matrix.

메소드 상세

Add() 공개 정적인 메소드

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

Matrix3x2() 공개 메소드

Constructs a new 3 row, 2 column matrix.
public Matrix3x2 ( float m11, float m12, float m21, float m22, float m31, float m32 ) : 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.
m31 float Value at row 2, column 1 of the matrix.
m32 float Value at row 2, column 2 of the matrix.
리턴 Microsoft.Xna.Framework

Multiply() 공개 정적인 메소드

Multiplies the two matrices.
public static Multiply ( Matrix &a, Matrix3x2 &b, Matrix3x2 &result ) : void
a Matrix First matrix to multiply.
b Matrix3x2 Second matrix to multiply.
result Matrix3x2 Product of the multiplication.
리턴 void

Multiply() 공개 정적인 메소드

Multiplies the two matrices.
public static Multiply ( Matrix3x3 &a, Matrix3x2 &b, Matrix3x2 &result ) : void
a Matrix3x3 First matrix to multiply.
b Matrix3x2 Second matrix to multiply.
result Matrix3x2 Product of the multiplication.
리턴 void

Negate() 공개 정적인 메소드

Negates every element in the matrix.
public static Negate ( Matrix3x2 &matrix, Matrix3x2 &result ) : void
matrix Matrix3x2 Matrix to negate.
result Matrix3x2 Negated matrix.
리턴 void

Subtract() 공개 정적인 메소드

Subtracts the two matrices from each other on a per-element basis.
public static Subtract ( Matrix3x2 &a, Matrix3x2 &b, Matrix3x2 &result ) : void
a Matrix3x2 First matrix to subtract.
b Matrix3x2 Second matrix to subtract.
result Matrix3x2 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, Matrix3x2 &matrix, Microsoft.Xna.Framework.Vector3 &result ) : void
v Microsoft.Xna.Framework.Vector2 Vector2 to transform. Considered to be a column vector for purposes of multiplication.
matrix Matrix3x2 Matrix to use as the transformation.
result Microsoft.Xna.Framework.Vector3 Column vector product of the transformation.
리턴 void

Transform() 공개 정적인 메소드

Transforms the vector by the matrix.
public static Transform ( Microsoft.Xna.Framework.Vector3 &v, Matrix3x2 &matrix, Vector2 &result ) : void
v Microsoft.Xna.Framework.Vector3 Vector2 to transform. Considered to be a row vector for purposes of multiplication.
matrix Matrix3x2 Matrix to use as the transformation.
result Microsoft.Xna.Framework.Vector2 Row vector product of the transformation.
리턴 void

Transpose() 공개 정적인 메소드

Computes the transposed matrix of a matrix.
public static Transpose ( Matrix3x2 &matrix, Matrix2x3 &result ) : void
matrix Matrix3x2 Matrix to transpose.
result Matrix2x3 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

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

M31 공개적으로 프로퍼티

Value at row 3, column 1 of the matrix.
public float M31
리턴 float

M32 공개적으로 프로퍼티

Value at row 3, column 2 of the matrix.
public float M32
리턴 float