| 117 | /// Transform a vector by a 3x3 matrix. |
| 118 | template<typename T> |
| 119 | [[nodiscard]] vector<T, 3> transformVector(const matrix<T, 3, 3>& m, const vector<T, 3>& v) |
| 120 | { |
| 121 | return mul(m, v); |
| 122 | } |
| 123 | |
| 124 | /// Transform a vectir by a 4x4 matrix. The vector is treated as a column vector with a 0 in the 4th component. |
| 125 | template<typename T> |