3rdparty/glm/doc/api/a00084_source.html
| | 0.9.8 |
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
30template <typename T, precision P>
31 GLM_FUNC_DECL tvec3<T, P> polar(
32 tvec3<T, P> const & euclidean);
33
37template <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"
Definition: _noise.hpp:11
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_FUNC_DECL tvec3< T, P > euclidean(tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.
Generated by 1.8.10