| 0.9.8

- Main Page
- Modules
- Files

- File List

polar_coordinates.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
19 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
20 #endif
21
22 namespace glm
23 {
26
30 template <typename T, precision P>
31 GLM_FUNC_DECL tvec3<T, P> polar(
32 tvec3<T, P> const & euclidean);
33
37 template <typename T, precision P>
38 GLM_FUNC_DECL tvec3<T, P> euclidean(
39 tvec2<T, P> const & polar);
40
42 }//namespace glm
43
44 #include "polar_coordinates.inl"
glm
Definition: _noise.hpp:11
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...
glm::euclidean
GLM_FUNC_DECL tvec3< T, P > euclidean(tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.