Alpha Engine
|
Header file for the 3x3 matrix library. More...
Go to the source code of this file.
Classes | |
struct | AEMtx33 |
Macros | |
#define | AEMtx33RowCol(pMtx, row, col) (pMtx)->m[(row)][(col)] |
Typedefs | |
typedef struct AEMtx33 | AEMtx33 |
Functions | |
void | AEMtx33Identity (AEMtx33 *pResult) |
Set pResult to identity matrix. More... | |
void | AEMtx33Transpose (AEMtx33 *pResult, AEMtx33 *pMtx) |
Set pResult to the transpose of pMtx. More... | |
f32 | AEMtx33Inverse (AEMtx33 *pResult, AEMtx33 *pMtx) |
Set pResult to the inverse of pMtx. More... | |
void | AEMtx33InvTranspose (AEMtx33 *pResult, AEMtx33 *pMtx) |
Set pResult to the transpose of the inverse of pMtx. More... | |
void | AEMtx33Concat (AEMtx33 *pResult, AEMtx33 *pMtx0, AEMtx33 *pMtx1) |
Set pResult to the multiplication of pMtx0 with pMtx1. More... | |
void | AEMtx33Orthogonalize (AEMtx33 *pResult, AEMtx33 *pMtx) |
Set pResult to the orthogonalization of pMtx. More... | |
f32 | AEMtx33Determinant (AEMtx33 *pMtx) |
Calculate the determinant of pMtx. More... | |
void | AEMtx33SetCol (AEMtx33 *pResult, u32 col, AEVec2 *pVec) |
Set the first and second element of the selected column of pResult to the x and y values of pVec respectively. The last element of the column will be set automatically. More... | |
void | AEMtx33SetRow (AEMtx33 *pResult, u32 row, AEVec2 *pVec) |
Set the first and second element of the selected row of pResult to the x and y values of pVec respectively. The last element of the row will be set automatically. More... | |
void | AEMtx33GetCol (AEVec2 *pResult, AEMtx33 *pMtx, u32 col) |
Set the x and y values of pResult with the first and second element of the selected column of pMtx respectively. More... | |
void | AEMtx33GetRow (AEVec2 *pResult, AEMtx33 *pMtx, u32 row) |
void | AEMtx33Trans (AEMtx33 *pResult, f32 x, f32 y) |
Set pResult to the translation matrix of x and y. More... | |
void | AEMtx33TransApply (AEMtx33 *pResult, AEMtx33 *pMtx, f32 x, f32 y) |
Set pResult to the multiplication of translation matrix of x and y with pMtx. More... | |
void | AEMtx33Scale (AEMtx33 *pResult, f32 x, f32 y) |
Set pResult to the scaling matrix of x and y. More... | |
void | AEMtx33ScaleApply (AEMtx33 *pResult, AEMtx33 *pMtx, f32 x, f32 y) |
Set pResult to the multiplication of scaling matrix of x and y with pMtx. More... | |
void | AEMtx33Rot (AEMtx33 *pResult, f32 angle) |
Set pResult to the rotation matrix of angle in radians rotating counter-clockwise. More... | |
void | AEMtx33RotDeg (AEMtx33 *pResult, f32 angle) |
Set pResult to the rotation matrix of angle in degrees rotating counter-clockwise. More... | |
void | AEMtx33MultVec (AEVec2 *pResult, AEMtx33 *pMtx, AEVec2 *pVec) |
Set pResult to the multiplication of pMtx with pVec. More... | |
void | AEMtx33MultVecArray (AEVec2 *pResult, AEMtx33 *pMtx, AEVec2 *pVec, u32 count) |
Set an array of vectors (pResult) to the multiplication of pMtx with an array of vectors (pVec) of size (count). More... | |
void | AEMtx33MultVecSR (AEVec2 *pResult, AEMtx33 *pMtx, AEVec2 *pVec) |
void | AEMtx33MultVecArraySR (AEVec2 *pResult, AEMtx33 *pMtx, AEVec2 *pVec, u32 count) |
Detailed Description
Header file for the 3x3 matrix library.
- Project: Alpha Engine
- Author
- Sun Tjen Fam
- Date
- January 31, 2008
- Copyright
- Copyright (C) 2013 DigiPen Institute of Technology. Reproduction or disclosure of this file or its contents without the prior written consent of DigiPen Institute of Technology is prohibited.
Definition in file AEMtx33.h.
Macro Definition Documentation
#define AEMtx33RowCol | ( | pMtx, | |
row, | |||
col | |||
) | (pMtx)->m[(row)][(col)] |
Typedef Documentation
Matrix is stored in column major format, ie. the translation term is in the right most column.
m[0][0] m[0][1] m[0][2]
m[1][0] m[1][1] m[1][2]
m[2][0] m[2][1] m[2][2]
Function Documentation
Calculate the determinant of pMtx.
- Parameters
-
[in] pMtx Pointer to AEMtx33 for input.
- Return values
-
f32 Returns the determinant of pMtx.
void AEMtx33Identity | ( | AEMtx33 * | pResult | ) |
Set pResult to identity matrix.
- Parameters
-
[out] pResult Pointer to AEMtx33 to be set.
- Return values
-
void No return.
Set an array of vectors (pResult) to the multiplication of pMtx with an array of vectors (pVec) of size (count).
- Warning
- Size of pResult should be not less than count.
- Parameters
-
[out] pResult Pointer to an array of AEMtx33 to be set. [in] pMtx Pointer to AEMtx33 for input. [in] pVec Pointer to an array of AEVec2 for input. [in] count Number of elements in pVec to be multiplied.
- Return values
-
void No return.
Set pResult to the rotation matrix of angle in radians rotating counter-clockwise.
- Parameters
-
[out] pResult Pointer to AEMtx33 to be set. [in] angle Angle in radians rotating counter-clockwise.
- Return values
-
void No return.
Set pResult to the rotation matrix of angle in degrees rotating counter-clockwise.
- Parameters
-
[out] pResult Pointer to AEMtx33 to be set. [in] angle Angle in degress rotating counter-clockwise.
- Return values
-
void No return.
Set pResult to the scaling matrix of x and y.
- Parameters
-
[out] pResult Pointer to AEMtx33 to be set. [in] x Scaling along the x-axis. [in] y Scaling along the y-axis.
- Return values
-
void No return.
Set the first and second element of the selected column of pResult to the x and y values of pVec respectively. The last element of the column will be set automatically.
- Parameters
-
[in,out] pResult Pointer to AEMtx33 to be set. [in] col The selected column of pResult. [in] pVec Pointer to AEVec2 for input.
- Return values
-
void No return.
Set the first and second element of the selected row of pResult to the x and y values of pVec respectively. The last element of the row will be set automatically.
- Parameters
-
[in,out] pResult Pointer to AEMtx33 to be set. [in] row The selected row of pResult. [in] pVec Pointer to AEVec2 for input.
- Return values
-
void No return.
Set pResult to the translation matrix of x and y.
- Parameters
-
[out] pResult Pointer to AEMtx33 to be set. [in] x Translation along the x-axis. [in] y Translation along the y-axis.
- Return values
-
void No return.
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by
