diff options
Diffstat (limited to 'external/include/glm/gtc/matrix_access.inl')
-rw-r--r-- | external/include/glm/gtc/matrix_access.inl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/external/include/glm/gtc/matrix_access.inl b/external/include/glm/gtc/matrix_access.inl index 831b940..176136a 100644 --- a/external/include/glm/gtc/matrix_access.inl +++ b/external/include/glm/gtc/matrix_access.inl @@ -3,12 +3,12 @@ namespace glm { - template <typename genType> + template<typename genType> GLM_FUNC_QUALIFIER genType row ( - genType const & m, + genType const& m, length_t index, - typename genType::row_type const & x + typename genType::row_type const& x ) { assert(index >= 0 && index < m[0].length()); @@ -19,27 +19,27 @@ namespace glm return Result; } - template <typename genType> + template<typename genType> GLM_FUNC_QUALIFIER typename genType::row_type row ( - genType const & m, + genType const& m, length_t index ) { assert(index >= 0 && index < m[0].length()); - typename genType::row_type Result; + typename genType::row_type Result(0); for(length_t i = 0; i < m.length(); ++i) Result[i] = m[i][index]; return Result; } - template <typename genType> + template<typename genType> GLM_FUNC_QUALIFIER genType column ( - genType const & m, + genType const& m, length_t index, - typename genType::col_type const & x + typename genType::col_type const& x ) { assert(index >= 0 && index < m.length()); @@ -49,10 +49,10 @@ namespace glm return Result; } - template <typename genType> + template<typename genType> GLM_FUNC_QUALIFIER typename genType::col_type column ( - genType const & m, + genType const& m, length_t index ) { |