MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / sphericalDirection

Function sphericalDirection

openpgl/openpgl_common.h:316–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316inline Vector3 sphericalDirection(const float &cosTheta, const float &sinTheta, const float &cosPhi, const float &sinPhi)
317{
318 return Vector3(sinTheta * cosPhi, sinTheta * sinPhi, cosTheta);
319};
320
321inline Vector3 sphericalDirection(const float &theta, const float &phi)
322{

Callers 2

sampleMethod · 0.85

Calls 3

Vector3Function · 0.85
cosFunction · 0.50
sinFunction · 0.50

Tested by

no test coverage detected