GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

Functions
GLM_GTX_polar_coordinates
GTX Extensions (Experimental)

## Functions
template<typename T , precision P>
detail::tvec3< T, P > | euclidean (detail::tvec2< T, P > const &polar)
template<typename T , precision P>
detail::tvec3< T, P > | polar (detail::tvec3< T, P > const &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, P> glm::euclidean | ( | detail::tvec2< T, P > const & | polar | ) |

Convert Polar to Euclidean coordinates.

See Also
  GLM_GTX_polar_coordinates

detail::tvec3<T, P> glm::polar | ( | detail::tvec3< T, P > 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