Fix polar coordinates function latitude.

Latitude was being computed from `atan`, should be `asin`.
This commit is contained in:
NouberNou 2016-02-25 18:18:02 -08:00
parent cb71d2376d
commit b189cb2f29

View file

@ -43,7 +43,7 @@ namespace glm
T const xz_dist(sqrt(tmp.x * tmp.x + tmp.z * tmp.z));
return tvec3<T, P>(
atan(xz_dist, tmp.y), // latitude
asin(tmp.y), // latitude
atan(tmp.x, tmp.z), // longitude
xz_dist); // xz distance
}