|  | 
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 #ifndef GLM_GTX_matrix_operation 00039 #define GLM_GTX_matrix_operation GLM_VERSION 00040 00041 // Dependency: 00042 #include "../glm.hpp" 00043 00044 #if(defined(GLM_MESSAGES) && !defined(glm_ext)) 00045 # pragma message("GLM: GLM_GTX_matrix_operation extension included") 00046 #endif 00047 00048 namespace glm 00049 { 00052 00055 template <typename valType> 00056 detail::tmat2x2<valType> diagonal2x2( 00057 detail::tvec2<valType> const & v); 00058 00061 template <typename valType> 00062 detail::tmat2x3<valType> diagonal2x3( 00063 detail::tvec2<valType> const & v); 00064 00067 template <typename valType> 00068 detail::tmat2x4<valType> diagonal2x4( 00069 detail::tvec2<valType> const & v); 00070 00073 template <typename valType> 00074 detail::tmat3x2<valType> diagonal3x2( 00075 detail::tvec2<valType> const & v); 00076 00079 template <typename valType> 00080 detail::tmat3x3<valType> diagonal3x3( 00081 detail::tvec3<valType> const & v); 00082 00085 template <typename valType> 00086 detail::tmat3x4<valType> diagonal3x4( 00087 detail::tvec3<valType> const & v); 00088 00091 template <typename valType> 00092 detail::tmat4x2<valType> diagonal4x2( 00093 detail::tvec2<valType> const & v); 00094 00097 template <typename valType> 00098 detail::tmat4x3<valType> diagonal4x3( 00099 detail::tvec3<valType> const & v); 00100 00103 template <typename valType> 00104 detail::tmat4x4<valType> diagonal4x4( 00105 detail::tvec4<valType> const & v); 00106 00108 }//namespace glm 00109 00110 #include "matrix_operation.inl" 00111 00112 #endif//GLM_GTX_matrix_operation
 1.7.3
 1.7.3