#include "ngl/Matrix.h"
#include "ngl/Vector.h"
#include "math.h"
Go to the source code of this file.
Functions |
float | cotan (const float &_i) |
| cotangent declaration
|
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] | _mat | the matrix to calculate from |
- Returns:
- adjoint
float cotan |
( |
const float & |
_i | ) |
[inline] |
cotangent declaration
- Parameters:
-
[in] | _i | float value to find cotan of |
float Det |
( |
const ngl::Matrix & |
_mat | ) |
|
calculated determinant of matrix
- Parameters:
-
[in] | _mat | the matrix to calculate from |
- Returns:
- determinant
ngl::Matrix Inverse |
( |
const ngl::Matrix & |
_mat | ) |
|
the inverse of a matrix
- Parameters:
-
[in] | _mat | the 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] | _eye | the position of the source |
[in] | _target | the position the source is looking at |
[in] | _lookup | the approximated 'up' vector for this source |
- Returns:
- ngl::Matrix view, view matrix for this lookat