mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
use radius for z-component
This commit is contained in:
parent
d688e5f915
commit
2b745395ec
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue