mirror of
https://github.com/g-truc/glm.git
synced 2025-04-13 08:43:00 +00:00
Fix polar coordinates function latitude.
Latitude was being computed from `atan`, should be `asin`.
This commit is contained in:
parent
cb71d2376d
commit
b189cb2f29
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue