Functions
GLM_GTX_polar_coordinates: Polar coordinates
GTX Extensions (Experimental)

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

Functions

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

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

detail::tvec3<T> glm::gtx::polar_coordinates::euclidean ( const detail::tvec3< T > &  polar)

Convert Polar to Euclidean coordinates.

From GLM_GTX_polar_coordinates extension.

detail::tvec3<T> glm::gtx::polar_coordinates::polar ( const detail::tvec3< T > &  euclidean)

Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude.

From GLM_GTX_polar_coordinates extension.