0.9.6
polar_coordinates.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 
43 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
45 #endif
46 
47 namespace glm
48 {
51 
55  template <typename T, precision P>
56  GLM_FUNC_DECL tvec3<T, P> polar(
57  tvec3<T, P> const & euclidean);
58 
62  template <typename T, precision P>
63  GLM_FUNC_DECL tvec3<T, P> euclidean(
64  tvec2<T, P> const & polar);
65 
67 }//namespace glm
68 
69 #include "polar_coordinates.inl"
Definition: _noise.hpp:31
GLM_FUNC_DECL tvec3< T, P > euclidean(tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.
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...