프로퍼티 | 타입 | 설명 | |
---|---|---|---|
V00 | float | ||
V01 | float | ||
V02 | float | ||
V10 | float | ||
V11 | float | ||
V12 | float | ||
V20 | float | ||
V21 | float | ||
V22 | float |
메소드 | 설명 | |
---|---|---|
Add ( |
Adds corresponding components of two matrices.
|
|
Add ( |
Adds specified value to all components of the specified matrix.
|
|
Adjugate ( ) : |
Calculate adjugate of the matrix, adj(A).
|
|
CreateDiagonal ( Vector3 vector ) : |
Creates a diagonal matrix using the specified vector as diagonal elements.
|
|
CreateFromColumns ( Vector3 column0, Vector3 column1, Vector3 column2 ) : |
Creates a matrix from 3 columns specified as vectors.
|
|
CreateFromRows ( Vector3 row0, Vector3 row1, Vector3 row2 ) : |
Creates a matrix from 3 rows specified as vectors.
|
|
CreateFromYawPitchRoll ( float yaw, float pitch, float roll ) : |
Creates rotation matrix to rotate an object around X, Y and Z axes. |
|
CreateRotationX ( float radians ) : |
Creates rotation matrix around X axis.
|
|
CreateRotationY ( float radians ) : |
Creates rotation matrix around Y axis.
|
|
CreateRotationZ ( float radians ) : |
Creates rotation matrix around Z axis.
|
|
Equals ( |
Tests whether the matrix equals to the specified one.
|
|
Equals ( Object obj ) : bool |
Tests whether the matrix equals to the specified object.
|
|
ExtractYawPitchRoll ( float &yaw, float &pitch, float &roll ) : void |
Extract rotation angles from the rotation matrix. Sample usage: // assume we have a rotation matrix created like this float yaw = 10.0f / 180 * Math.PI; float pitch = 30.0f / 180 * Math.PI; float roll = 45.0f / 180 * Math.PI; Matrix3x3 rotationMatrix = Matrix3x3.CreateFromYawPitchRoll( yaw, pitch, roll ); // ... // now somewhere in the code you may want to get rotation // angles back from a matrix assuming same rotation order float extractedYaw; float extractedPitch; float extractedRoll; rotation.ExtractYawPitchRoll( out extractedYaw, out extractedPitch, out extractedRoll ); |
|
GetColumn ( int index ) : Vector3 |
Get column of the matrix.
|
|
GetHashCode ( ) : int |
Returns the hashcode for this instance.
|
|
GetRow ( int index ) : Vector3 |
Get row of the matrix.
|
|
Inverse ( ) : |
Calculate inverse of the matrix, A-1.
|
|
Multiply ( |
Multiplies two specified matrices.
|
|
Multiply ( |
Multiplies matrix by the specified factor.
|
|
Multiply ( |
Multiplies specified matrix by the specified vector.
|
|
MultiplySelfByTranspose ( ) : |
Multiply the matrix by its transposition, A*AT.
|
|
MultiplyTransposeBySelf ( ) : |
Multiply transposition of this matrix by itself, AT*A.
|
|
PseudoInverse ( ) : |
Calculate pseudo inverse of the matrix, A+. The pseudo inverse of the matrix is calculate through its SVD as V*E+*UT. |
|
SVD ( |
Calculate Singular Value Decomposition (SVD) of the matrix, such as A=U*E*VT. Having components U, E and V the source matrix can be reproduced using below code: |
|
Subtract ( |
Subtracts corresponding components of two matrices.
|
|
ToArray ( ) : float[] |
Returns array representation of the matrix.
|
|
Transpose ( ) : |
Transpose the matrix, AT.
|
|
operator ( ) : |
Multiplies two specified matrices.
|
|
operator ( ) : Vector3 |
Multiplies specified matrix by the specified vector.
|
|
operator ( ) : bool |
Tests whether two specified matrices are equal.
|
public static Add ( |
||
matrix1 | The matrix to add to. | |
matrix2 | The matrix to add to the first matrix. | |
리턴 |
public static Add ( |
||
matrix | Matrix to add value to. | |
value | float | Value to add to all components of the specified matrix. |
리턴 |
public static CreateDiagonal ( Vector3 vector ) : |
||
vector | Vector3 | Vector to use for diagonal elements of the matrix. |
리턴 |
public static CreateFromColumns ( Vector3 column0, Vector3 column1, Vector3 column2 ) : |
||
column0 | Vector3 | First column of the matrix to create. |
column1 | Vector3 | Second column of the matrix to create. |
column2 | Vector3 | Third column of the matrix to create. |
리턴 |
public static CreateFromRows ( Vector3 row0, Vector3 row1, Vector3 row2 ) : |
||
row0 | Vector3 | First row of the matrix to create. |
row1 | Vector3 | Second row of the matrix to create. |
row2 | Vector3 | Third row of the matrix to create. |
리턴 |
public static CreateFromYawPitchRoll ( float yaw, float pitch, float roll ) : |
||
yaw | float | Rotation angle around Y axis in radians. |
pitch | float | Rotation angle around X axis in radians. |
roll | float | Rotation angle around Z axis in radians. |
리턴 |
public static CreateRotationX ( float radians ) : |
||
radians | float | Rotation angle around X axis in radians. |
리턴 |
public static CreateRotationY ( float radians ) : |
||
radians | float | Rotation angle around Y axis in radians. |
리턴 |
public static CreateRotationZ ( float radians ) : |
||
radians | float | Rotation angle around Z axis in radians. |
리턴 |
public Equals ( |
||
matrix | The matrix to test equality with. | |
리턴 | bool |
public Equals ( Object obj ) : bool | ||
obj | Object | The object to test equality with. |
리턴 | bool |
public ExtractYawPitchRoll ( float &yaw, float &pitch, float &roll ) : void | ||
yaw | float | Extracted rotation angle around Y axis in radians. |
pitch | float | Extracted rotation angle around X axis in radians. |
roll | float | Extracted rotation angle around Z axis in radians. |
리턴 | void |
public GetColumn ( int index ) : Vector3 | ||
index | int | Column index to get, [0, 2]. |
리턴 | Vector3 |
public GetRow ( int index ) : Vector3 | ||
index | int | Row index to get, [0, 2]. |
리턴 | Vector3 |
public static Multiply ( |
||
matrix1 | Matrix to multiply. | |
matrix2 | Matrix to multiply by. | |
리턴 |
public static Multiply ( |
||
matrix | Matrix to multiply. | |
factor | float | Factor to multiple the specified matrix by. |
리턴 |
public static Multiply ( |
||
matrix | Matrix to multiply by vector. | |
vector | Vector3 | Vector to multiply matrix by. |
리턴 | Vector3 |
public SVD ( |
||
u | Output parameter which gets 3x3 U matrix. | |
e | Vector3 | Output parameter which gets diagonal elements of the E matrix. |
v | Output parameter which gets 3x3 V matrix. | |
리턴 | void |
public static Subtract ( |
||
matrix1 | The matrix to subtract from. | |
matrix2 | The matrix to subtract from the first matrix. | |
리턴 |