| 115 | } |
| 116 | |
| 117 | std::array<double, 9> GetDirectionCosines(const mitk::TimeGeometry* tg, mitk::TimeStepType t) |
| 118 | { |
| 119 | auto dir = GetDirection(tg, t); |
| 120 | auto buf = dir.unchecked<2>(); |
| 121 | std::array<double, 9> flat{}; |
| 122 | |
| 123 | for (int row = 0; row < 3; ++row) |
| 124 | for (int col = 0; col < 3; ++col) |
| 125 | flat[row * 3 + col] = buf(row, col); |
| 126 | |
| 127 | return flat; |
| 128 | } |
no test coverage detected