include/Spectre/Math/Matrix3.h: minor comment fix.
This commit is contained in:
parent
84d773dc0d
commit
7bf8617267
1 changed files with 11 additions and 8 deletions
|
|
@ -10,16 +10,18 @@
|
|||
template<typename T>
|
||||
struct Matrix3
|
||||
{
|
||||
/* Column-major order are used for the matrices here to be compatible with OpenGL.
|
||||
_ _
|
||||
| |
|
||||
| 0 3 6 |
|
||||
| 1 4 7 |
|
||||
| 2 5 8 |
|
||||
|_ _|
|
||||
*/
|
||||
// Column-major order are used for the matrices here to be compatible with OpenGL.
|
||||
union {
|
||||
T m[3][3]; // format: [col][row]
|
||||
|
||||
/* Indicies to use for accessing elements.
|
||||
_ _
|
||||
| |
|
||||
| 0 3 6 |
|
||||
| 1 4 7 |
|
||||
| 2 5 8 |
|
||||
|_ _|
|
||||
*/
|
||||
T v[9];
|
||||
};
|
||||
|
||||
|
|
@ -27,6 +29,7 @@ struct Matrix3
|
|||
|
||||
|
||||
inline Matrix3();
|
||||
|
||||
inline Matrix3( T a, T b, T c,
|
||||
T d, T e, T f,
|
||||
T g, T h, T i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue