Flow Visualisation
GLM_GTX_polar_coordinates

Conversion from Euclidean space to polar space and revert. More...

Collaboration diagram for GLM_GTX_polar_coordinates:

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)
 

Detailed Description

Conversion from Euclidean space to polar space and revert.

<glm/gtx/polar_coordinates.hpp> need to be included to use these functionalities.

Function Documentation

template<typename T >
detail::tvec3<T> glm::euclidean ( detail::tvec2< T > const &  polar)

Convert Polar to Euclidean coordinates.

See also
GLM_GTX_polar_coordinates
template<typename T >
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.

See also
GLM_GTX_polar_coordinates