18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_polar_coordinates is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
34 template<
typename T, qualifier P>
35 GLM_FUNC_DECL vec<3, T, P>
polar(
41 template<
typename T, qualifier P>
43 vec<2, T, P>
const &
polar);
48 #include "polar_coordinates.inl"
GLM_FUNC_DECL vec< 3, T, P > euclidean(vec< 2, T, P > const &polar)
Convert Polar to Euclidean coordinates.
GLM_FUNC_DECL vec< 3, T, P > polar(vec< 3, T, P > const &euclidean)
Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude...