MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / sphericalDegreesToCartesian

Function sphericalDegreesToCartesian

src/core/math/vector.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 float3 sphericalDegreesToCartesian(float azimuth, float elevation, float distance)
42 {
43 return sphericalToCartesian(radians(azimuth), radians(elevation), distance);
44 }
45
46 void cartesianToSpherical(const float3& v, float& azimuth, float& elevation, float& distance)
47 {

Callers

nothing calls this directly

Calls 2

sphericalToCartesianFunction · 0.85
radiansFunction · 0.85

Tested by

no test coverage detected