Skip to content

Commit

Permalink
Merge pull request #485 from NouberNou/NouberNou-Polar-Coordinates-Fix
Browse files Browse the repository at this point in the history
Fix polar coordinates function latitude. #485
  • Loading branch information
Groovounet committed Mar 5, 2016
2 parents 8647d60 + b189cb2 commit c9720a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glm/gtx/polar_coordinates.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c9720a7

Please sign in to comment.