| 0.9.6

- Main Page
- Modules
- Files

- File List

polar_coordinates.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../glm.hpp"
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
49 #endif
50
51 namespace glm
52 {
55
59 template <typename T, precision P>
60 GLM_FUNC_DECL tvec3<T, P> polar(
61 tvec3<T, P> const & euclidean);
62
66 template <typename T, precision P>
67 GLM_FUNC_DECL tvec3<T, P> euclidean(
68 tvec2<T, P> const & polar);
69
71 }//namespace glm
72
73 #include "polar_coordinates.inl"
glm::euclidean
GLM_FUNC_DECL tvec3< T, P > euclidean(tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.
glm
Definition: _noise.hpp:39
glm::polar
GLM_FUNC_DECL tvec3< T, P > polar(tvec3< T, P > const &euclidean)
Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude...