mirror of
https://github.com/g-truc/glm.git
synced 2025-04-13 16:50:38 +00:00
Merge pull request #485 from NouberNou/NouberNou-Polar-Coordinates-Fix
Fix polar coordinates function latitude. #485
This commit is contained in:
commit
c9720a7f40
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