GLM  0.9.5
matrix_access.hpp
Go to the documentation of this file.
1 
37 #ifndef GLM_GTC_matrix_access
38 #define GLM_GTC_matrix_access
39 
40 // Dependency:
41 #include "../detail/setup.hpp"
42 
43 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44 # pragma message("GLM: GLM_GTC_matrix_access extension included")
45 #endif
46 
47 namespace glm
48 {
51 
54  template <typename genType>
55  typename genType::row_type row(
56  genType const & m,
57  length_t const & index);
58 
61  template <typename genType>
62  genType row(
63  genType const & m,
64  length_t const & index,
65  typename genType::row_type const & x);
66 
69  template <typename genType>
70  typename genType::col_type column(
71  genType const & m,
72  length_t const & index);
73 
76  template <typename genType>
77  genType column(
78  genType const & m,
79  length_t const & index,
80  typename genType::col_type const & x);
81 
83 }//namespace glm
84 
85 #include "matrix_access.inl"
86 
87 #endif//GLM_GTC_matrix_access
genType::col_type column(genType const &m, length_t const &index)
Get a specific column of a matrix.
genType::row_type row(genType const &m, length_t const &index)
Get a specific row of a matrix.