0.9.9 API documenation: polar_coordinates.hpp Source File

| 0.9.9 API documenation

- 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 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_polar_coordinates is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
24 #endif
25
26 namespace glm
27 {
30
34 template <typename T, precision P>
35 GLM_FUNC_DECL tvec3<T, P> polar(
36 tvec3<T, P> const & euclidean);
37
41 template <typename T, precision P>
42 GLM_FUNC_DECL tvec3<T, P> euclidean(
43 tvec2<T, P> const & polar);
44
46 }//namespace glm
47
48 #include "polar_coordinates.inl"
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
Definition: _noise.hpp:11
glm::euclidean
GLM_FUNC_DECL tvec3< T, P > euclidean(tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.