FlukyEngine
Functions
GLM_GTX_polar_coordinates

Include <glm/gtx/polar_coordinates.hpp> to use the features of this extension. More...

Collaboration diagram for GLM_GTX_polar_coordinates:

Functions

template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 3, T, Q > glm::polar (vec< 3, T, Q > const &euclidean)
 Convert Euclidean to Polar coordinates, x is the latitude, y the longitude and z the xz distance. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 3, T, Q > glm::euclidean (vec< 2, T, Q > const &polar)
 Convert Polar to Euclidean coordinates. More...
 

Detailed Description

Include <glm/gtx/polar_coordinates.hpp> to use the features of this extension.

Conversion from Euclidean space to polar space and revert.

Function Documentation

◆ euclidean()

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<3, T, Q> glm::euclidean ( vec< 2, T, Q > const &  polar)

Convert Polar to Euclidean coordinates.

See also
GLM_GTX_polar_coordinates

◆ polar()

template<typename T , qualifier Q>
GLM_FUNC_DECL vec<3, T, Q> glm::polar ( vec< 3, T, Q > const &  euclidean)

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

See also
GLM_GTX_polar_coordinates