MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / GetRasterToCameraMatrix

Method GetRasterToCameraMatrix

src/slg/cameras/stereo.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37Matrix4x4 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
46Matrix4x4 StereoCamera::GetCameraToWorldMatrix(const u_int index) const {
47 if (index == 0)

Callers 1

CompileCameraMethod · 0.45

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected