| 1 | // |
| 2 | // Copyright 2003 Google, Inc. |
| 3 | // |
| 4 | // |
| 5 | // A simple class to handle 3x3 matrices |
| 6 | // The aim of this class is to be able to manipulate 3x3 matrices |
| 7 | // and 3D vectors as naturally as possible and make calculations |
| 8 | // readable. |
| 9 | // For that reason, the operators +, -, * are overloaded. |
| 10 | // (Reading a = a + b*2 - c is much easier to read than |
| 11 | // a = Sub(Add(a, Mul(b,2)),c) ) |
| 12 | // This file only define the typenames, for API details, look into |
| 13 | // matrix3x3-inl.h |
| 14 | // |
| 15 | |
| 16 | #ifndef UTIL_MATH_MATRIX3X3_H__ |
| 17 | #define UTIL_MATH_MATRIX3X3_H__ |
| 18 | |
| 19 | template <class VType> |
| 20 | class Matrix3x3; |
| 21 | |
| 22 | typedef Matrix3x3<int> Matrix3x3_i; |
| 23 | typedef Matrix3x3<float> Matrix3x3_f; |
| 24 | typedef Matrix3x3<double> Matrix3x3_d; |
| 25 | |
| 26 | #endif // UTIL_MATH_MATRIX3X3_H__ |
| 27 | |