GLM  0.9.5
polar_coordinates.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_polar_coordinates
39 #define GLM_GTX_polar_coordinates
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
46 #endif
47 
48 namespace glm
49 {
52 
56  template <typename T, precision P>
57  detail::tvec3<T, P> polar(
58  detail::tvec3<T, P> const & euclidean);
59 
63  template <typename T, precision P>
64  detail::tvec3<T, P> euclidean(
65  detail::tvec2<T, P> const & polar);
66 
68 }//namespace glm
69 
70 #include "polar_coordinates.inl"
71 
72 #endif//GLM_GTX_polar_coordinates
detail::tvec3< T, P > euclidean(detail::tvec2< T, P > const &polar)
Convert Polar to Euclidean coordinates.
detail::tvec3< T, P > polar(detail::tvec3< T, P > const &euclidean)
Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude...