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

Function cartesianToSphericalDegrees

src/core/math/vector.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void cartesianToSphericalDegrees(const float3& v, float& azimuth, float& elevation, float& distance)
68 {
69 float r_azimuth, r_elevation;
70 cartesianToSpherical(v, r_azimuth, r_elevation, distance);
71 azimuth = degrees(r_azimuth);
72 elevation = degrees(r_elevation);
73 }
74
75 template<>
76 uint vectorToSnorm8(const float2& v)

Callers

nothing calls this directly

Calls 2

cartesianToSphericalFunction · 0.85
degreesFunction · 0.85

Tested by

no test coverage detected