| 4 | #include <cassert> |
| 5 | |
| 6 | int |
| 7 | main() |
| 8 | { |
| 9 | const Imath::V3f v (3.0f, 4.0f, 5.0f); |
| 10 | |
| 11 | Imath::M44f M; |
| 12 | const Imath::V3f t(1.0f, 2.0f, 3.0f); |
| 13 | M.translate (t); |
| 14 | |
| 15 | Imath::V3f p; |
| 16 | M.multVecMatrix(v, p); |
| 17 | |
| 18 | std::cout << "What's your vector, Victor? " << p << std::endl; |
| 19 | |
| 20 | Imath::V3f vt = v + t; |
| 21 | assert (p.equalWithAbsError(vt, 1e-6f)); |
| 22 | |
| 23 | return 0; |
| 24 | } |
nothing calls this directly
no test coverage detected