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

Function SphericalTheta

include/luxrays/core/geometry/vector.h:190–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190inline float SphericalTheta(const Vector &v) {
191 return acosf(Clamp(v.z, -1.f, 1.f));
192}
193
194inline float SphericalPhi(const Vector &v) {
195 const float p = atan2f(v.y, v.x);

Callers 5

PdfMethod · 0.85
PreprocessMethod · 0.85
ToLatLongMappingMethod · 0.85
PreprocessMethod · 0.85
EvaluateMethod · 0.85

Calls 1

ClampFunction · 0.50

Tested by

no test coverage detected