GLM Version 0.9.0
Functions

glm::core::function::matrix Namespace Reference

Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included in glm namespace. More...

Functions

template<typename T >
detail::tmat2x2< T >::value_type determinant (detail::tmat2x2< T > const &m)
 Return the determinant of a mat2 matrix.
template<typename T >
detail::tmat3x3< T >::value_type determinant (detail::tmat3x3< T > const &m)
 Return the determinant of a mat3 matrix.
template<typename T >
detail::tmat4x4< T >::value_type determinant (detail::tmat4x4< T > const &m)
 Return the determinant of a mat4 matrix.
template<typename T >
detail::tmat4x4< T > inverse (detail::tmat4x4< T > const &m)
 Return the inverse of a mat4 matrix.
template<typename T >
detail::tmat3x3< T > inverse (detail::tmat3x3< T > const &m)
 Return the inverse of a mat3 matrix.
template<typename T >
detail::tmat2x2< T > inverse (detail::tmat2x2< T > const &m)
 Return the inverse of a mat2 matrix.
template<typename matType >
matType matrixCompMult (matType const &x, matType const &y)
 Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j].
template<typename vecType , typename matType >
matType outerProduct (vecType const &c, vecType const &r)
 Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r.
template<typename matType >
matType::transpose_type transpose (matType const &x)
 Returns the transposed matrix of x (From GLSL 1.30.08 specification, section 8.5)

Detailed Description

Define all matrix functions from Section 8.5 of GLSL 1.30.8 specification. Included in glm namespace.


Function Documentation

detail::tmat2x2<T>::value_type glm::core::function::matrix::determinant ( detail::tmat2x2< T > const &  m)

Return the determinant of a mat2 matrix.

(From GLSL 1.50.09 specification, section 8.5)..

detail::tmat3x3<T>::value_type glm::core::function::matrix::determinant ( detail::tmat3x3< T > const &  m)

Return the determinant of a mat3 matrix.

(From GLSL 1.50.09 specification, section 8.5).

detail::tmat4x4<T>::value_type glm::core::function::matrix::determinant ( detail::tmat4x4< T > const &  m)

Return the determinant of a mat4 matrix.

(From GLSL 1.50.09 specification, section 8.5).

detail::tmat4x4<T> glm::core::function::matrix::inverse ( detail::tmat4x4< T > const &  m)

Return the inverse of a mat4 matrix.

(From GLSL 1.40.07 specification, section 8.5).

detail::tmat3x3<T> glm::core::function::matrix::inverse ( detail::tmat3x3< T > const &  m)

Return the inverse of a mat3 matrix.

(From GLSL 1.40.07 specification, section 8.5).

detail::tmat2x2<T> glm::core::function::matrix::inverse ( detail::tmat2x2< T > const &  m)

Return the inverse of a mat2 matrix.

(From GLSL 1.40.07 specification, section 8.5).

matType glm::core::function::matrix::matrixCompMult ( matType const &  x,
matType const &  y 
)

Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j].

(From GLSL 1.30.08 specification, section 8.5)

matType glm::core::function::matrix::outerProduct ( vecType const &  c,
vecType const &  r 
)

Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r.

(From GLSL 1.30.08 specification, section 8.5)