SimpleNGL 1.0
Functions
src/NGLMath.cpp File Reference
#include "NGLMath.h"

Functions

ngl::Matrix Lookat (const ngl::Vector &_eye, const ngl::Vector &_target, const ngl::Vector &_lookup)
 method for constructing view matrix based on a approximated 'up' vector
ngl::Matrix Adj (const ngl::Matrix &_mat)
 calculated adjoint of matrix
float Det (const ngl::Matrix &_mat)
 calculated determinant of matrix
ngl::Matrix Inverse (const ngl::Matrix &_mat)
 the inverse of a matrix

Function Documentation

ngl::Matrix Adj ( const ngl::Matrix &  _mat)

calculated adjoint of matrix

Parameters:
[in]_matthe matrix to calculate from
Returns:
adjoint
float Det ( const ngl::Matrix &  _mat)

calculated determinant of matrix

Parameters:
[in]_matthe matrix to calculate from
Returns:
determinant
ngl::Matrix Inverse ( const ngl::Matrix &  _mat)

the inverse of a matrix

Parameters:
[in]_matthe matrix to calculate from
Returns:
inverse
ngl::Matrix Lookat ( const ngl::Vector &  _eye,
const ngl::Vector &  _target,
const ngl::Vector &  _lookup 
)

method for constructing view matrix based on a approximated 'up' vector

Parameters:
[in]_eyethe position of the source
[in]_targetthe position the source is looking at
[in]_lookupthe approximated 'up' vector for this source
Returns:
ngl::Matrix view, view matrix for this lookat
 All Classes Namespaces Files Functions Variables Enumerations Enumerator