| 35 | } |
| 36 | |
| 37 | Matrix4x4 StereoCamera::GetRasterToCameraMatrix(const u_int index) const { |
| 38 | if (index == 0) |
| 39 | return leftEye->GetRasterToCameraMatrix(); |
| 40 | else if (index == 1) |
| 41 | return rightEye->GetRasterToCameraMatrix(); |
| 42 | else |
| 43 | throw runtime_error("Unknown index in GetRasterToCameraMatrix(): " + ToString(index)); |
| 44 | } |
| 45 | |
| 46 | Matrix4x4 StereoCamera::GetCameraToWorldMatrix(const u_int index) const { |
| 47 | if (index == 0) |
no test coverage detected