use radius for z-component

This commit is contained in:
bwent 2015-07-21 11:38:10 -07:00
parent d688e5f915
commit 2b745395ec

View file

@ -95,7 +95,7 @@ glm::vec3 Vec3::toPolar(const glm::vec3& v) {
elevation = 0.0f; elevation = 0.0f;
} }
return glm::vec3(azimuth, elevation, length(v)); return glm::vec3(azimuth, elevation, radius);
} }
glm::vec3 Vec3::fromPolar(const glm::vec3& polar) { glm::vec3 Vec3::fromPolar(const glm::vec3& polar) {