| 3 | namespace TFE_Math |
| 4 | { |
| 5 | Mat3 computeViewMatrix(const Vec3f* lookDir, const Vec3f* upDir) |
| 6 | { |
| 7 | Vec3f rightDir = cross(lookDir, upDir); |
| 8 | rightDir = normalize(&rightDir); |
| 9 | |
| 10 | Vec3f orthoUp = cross(&rightDir, lookDir); |
| 11 | orthoUp = normalize(&orthoUp); |
| 12 | |
| 13 | return { rightDir, orthoUp, *lookDir }; |
| 14 | } |
| 15 | |
| 16 | Mat3 transpose(const Mat3& mtx) |
| 17 | { |
no test coverage detected