Flow Visualisation
|
Conversion from Euclidean space to polar space and revert. More...
Functions | |
template<typename T > | |
detail::tvec3< T > | glm::polar (detail::tvec3< T > const &euclidean) |
template<typename T > | |
detail::tvec3< T > | glm::euclidean (detail::tvec2< T > const &polar) |
Conversion from Euclidean space to polar space and revert.
<glm/gtx/polar_coordinates.hpp> need to be included to use these functionalities.
detail::tvec3<T> glm::euclidean | ( | detail::tvec2< T > const & | polar | ) |
Convert Polar to Euclidean coordinates.
detail::tvec3<T> glm::polar | ( | detail::tvec3< T > const & | euclidean | ) |
Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude.