rotate_vector.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 #pragma once
00040 
00041 // Dependency:
00042 #include "../glm.hpp"
00043 #include "../gtx/transform.hpp"
00044 
00045 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
00046 #       pragma message("GLM: GLM_GTX_rotate_vector extension included")
00047 #endif
00048 
00049 namespace glm
00050 {
00053 
00061         template <typename T, precision P>
00062         GLM_FUNC_DECL detail::tvec3<T, P> slerp(
00063                 detail::tvec3<T, P> const & x,
00064                 detail::tvec3<T, P> const & y,
00065                 T const & a);
00066 
00069         template <typename T, precision P>
00070         GLM_FUNC_DECL detail::tvec2<T, P> rotate(
00071                 detail::tvec2<T, P> const & v,
00072                 T const & angle);
00073                 
00076         template <typename T, precision P>
00077         GLM_FUNC_DECL detail::tvec3<T, P> rotate(
00078                 detail::tvec3<T, P> const & v,
00079                 T const & angle,
00080                 detail::tvec3<T, P> const & normal);
00081                 
00084         template <typename T, precision P>
00085         GLM_FUNC_DECL detail::tvec4<T, P> rotate(
00086                 detail::tvec4<T, P> const & v,
00087                 T const & angle,
00088                 detail::tvec3<T, P> const & normal);
00089                 
00092         template <typename T, precision P>
00093         GLM_FUNC_DECL detail::tvec3<T, P> rotateX(
00094                 detail::tvec3<T, P> const & v,
00095                 T const & angle);
00096 
00099         template <typename T, precision P>
00100         GLM_FUNC_DECL detail::tvec3<T, P> rotateY(
00101                 detail::tvec3<T, P> const & v,
00102                 T const & angle);
00103                 
00106         template <typename T, precision P>
00107         GLM_FUNC_DECL detail::tvec3<T, P> rotateZ(
00108                 detail::tvec3<T, P> const & v,
00109                 T const & angle);
00110                 
00113         template <typename T, precision P>
00114         GLM_FUNC_DECL detail::tvec4<T, P> rotateX(
00115                 detail::tvec4<T, P> const & v,
00116                 T const & angle);
00117                 
00120         template <typename T, precision P>
00121         GLM_FUNC_DECL detail::tvec4<T, P> rotateY(
00122                 detail::tvec4<T, P> const & v,
00123                 T const & angle);
00124                 
00127         template <typename T, precision P>
00128         GLM_FUNC_DECL detail::tvec4<T, P> rotateZ(
00129                 detail::tvec4<T, P> const & v,
00130                 T const & angle);
00131                 
00134         template <typename T, precision P>
00135         GLM_FUNC_DECL detail::tmat4x4<T, P> orientation(
00136                 detail::tvec3<T, P> const & Normal,
00137                 detail::tvec3<T, P> const & Up);
00138 
00140 }//namespace glm
00141 
00142 #include "rotate_vector.inl"


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:17