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

Method GetCameraToWorldMatrix

src/slg/cameras/stereo.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46Matrix4x4 StereoCamera::GetCameraToWorldMatrix(const u_int index) const {
47 if (index == 0)
48 return leftEye->GetCameraToWorldMatrix();
49 else if (index == 1)
50 return rightEye->GetCameraToWorldMatrix();
51 else
52 throw runtime_error("Unknown index in GetCameraToWorldMatrix(): " + ToString(index));
53}
54
55void StereoCamera::Update(const u_int width, const u_int height,
56 const u_int *subRegion) {

Callers 1

CompileCameraMethod · 0.45

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected