프로퍼티 | 타입 | 설명 | |
---|---|---|---|
V00 | float | ||
V01 | float | ||
V02 | float | ||
V03 | float | ||
V10 | float | ||
V11 | float | ||
V12 | float | ||
V13 | float | ||
V20 | float | ||
V21 | float | ||
V22 | float | ||
V23 | float | ||
V30 | float | ||
V31 | float | ||
V32 | float | ||
V33 | float |
메소드 | 설명 | |
---|---|---|
Add ( |
Adds corresponding components of two matrices.
|
|
CreateDiagonal ( Vector4 vector ) : |
Creates a diagonal matrix using the specified vector as diagonal elements.
|
|
CreateFromColumns ( Vector4 column0, Vector4 column1, Vector4 column2, Vector4 column3 ) : |
Creates a matrix from 4 columns specified as vectors.
|
|
CreateFromRotation ( |
Creates 4x4 tranformation matrix from 3x3 rotation matrix. The source 3x3 rotation matrix is copied into the top left corner of the result 4x4 matrix, i.e. it represents 0th, 1st and 2nd row/column. The V33 element is set to 1 and the rest elements of 3rd row and 3rd column are set to zeros. |
|
CreateFromRows ( Vector4 row0, Vector4 row1, Vector4 row2, Vector4 row3 ) : |
Creates a matrix from 4 rows specified as vectors.
|
|
CreateFromYawPitchRoll ( float yaw, float pitch, float roll ) : |
Creates rotation matrix to rotate an object around X, Y and Z axes. |
|
CreateLookAt ( Vector3 cameraPosition, Vector3 cameraTarget ) : |
Creates a view matrix for the specified camera position and target point. Camera's "up" vector is supposed to be (0, 1, 0). |
|
CreatePerspective ( float width, float height, float nearPlaneDistance, float farPlaneDistance ) : |
Creates a perspective projection matrix.
|
|
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.
|
|
CreateTranslation ( Vector3 position ) : |
Creates translation matrix for the specified movement amount. The specified vector is copied to the 3rd column of the result matrix. All diagonal elements are set to 1. The rest of matrix is initialized with zeros. |
|
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; Matrix4x4 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 ) : Vector4 |
Get column of the matrix.
|
|
GetHashCode ( ) : int |
Returns the hashcode for this instance.
|
|
GetRow ( int index ) : Vector4 |
Get row of the matrix.
|
|
Multiply ( |
Multiplies two specified matrices.
|
|
Multiply ( |
Multiplies specified matrix by the specified vector.
|
|
Subtract ( |
Subtracts corresponding components of two matrices.
|
|
ToArray ( ) : float[] |
Returns array representation of the matrix.
|
|
operator ( ) : |
Multiplies two specified matrices.
|
|
operator ( ) : Vector4 |
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 CreateDiagonal ( Vector4 vector ) : |
||
vector | Vector4 | Vector to use for diagonal elements of the matrix. |
리턴 |
public static CreateFromColumns ( Vector4 column0, Vector4 column1, Vector4 column2, Vector4 column3 ) : |
||
column0 | Vector4 | First column of the matrix to create. |
column1 | Vector4 | Second column of the matrix to create. |
column2 | Vector4 | Third column of the matrix to create. |
column3 | Vector4 | Fourth column of the matrix to create. |
리턴 |
public static CreateFromRotation ( |
||
rotationMatrix | Source 3x3 rotation matrix. | |
리턴 |
public static CreateFromRows ( Vector4 row0, Vector4 row1, Vector4 row2, Vector4 row3 ) : |
||
row0 | Vector4 | First row of the matrix to create. |
row1 | Vector4 | Second row of the matrix to create. |
row2 | Vector4 | Third row of the matrix to create. |
row3 | Vector4 | Fourth 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 CreateLookAt ( Vector3 cameraPosition, Vector3 cameraTarget ) : |
||
cameraPosition | Vector3 | Position of camera. |
cameraTarget | Vector3 | Target point towards which camera is pointing. |
리턴 |
public static CreatePerspective ( float width, float height, float nearPlaneDistance, float farPlaneDistance ) : |
||
width | float | Width of the view volume at the near view plane. |
height | float | Height of the view volume at the near view plane. |
nearPlaneDistance | float | Distance to the near view plane. |
farPlaneDistance | float | Distance to the far view plane. |
리턴 |
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 static CreateTranslation ( Vector3 position ) : |
||
position | Vector3 | Vector which set direction and amount of movement. |
리턴 |
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 ) : Vector4 | ||
index | int | Column index to get, [0, 3]. |
리턴 | Vector4 |
public GetRow ( int index ) : Vector4 | ||
index | int | Row index to get, [0, 3]. |
리턴 | Vector4 |
public static Multiply ( |
||
matrix1 | Matrix to multiply. | |
matrix2 | Matrix to multiply by. | |
리턴 |
public static Multiply ( |
||
matrix | Matrix to multiply by vector. | |
vector | Vector4 | Vector to multiply matrix by. |
리턴 | Vector4 |
public static Subtract ( |
||
matrix1 | The matrix to subtract from. | |
matrix2 | The matrix to subtract from the first matrix. | |
리턴 |