Matrix4.hpp
Go to the documentation of this file.
200 Matrix4 matFrustum(float _xmin, float _xmax, float _ymin, float _ymax, float _zNear, float _zFar);
220 Matrix4 matOrtho(float _left, float _right, float _bottom, float _top, float _nearVal, float _farVal);
256 // To siplify the writing of the code ==> this permit to have the same name with the glsl language...
Matrix4 matFrustum(float _xmin, float _xmax, float _ymin, float _ymax, float _zNear, float _zFar)
Create projection matrix with the box parameter (camera view in -z axis)
Matrix4 matOrtho(float _left, float _right, float _bottom, float _top, float _nearVal, float _farVal)
Create orthogonal projection matrix with the box parameter (camera view in -z axis) ...
float coFactor(int32_t _row, int32_t _col) const
Computes a cofactor. Used for matrix inversion.
Matrix4 operator-(const Matrix4 &_obj) const
Operator- Decrement an other matrix with this one.
basic namespace of the etk library. (it might contain all the etk fuctions/class/structures without m...
Definition: Archive.hpp:16
void rotate(const vec3 &_vect, float _angleRad=0.0)
Makes a rotation matrix about an arbitrary axis.
Matrix4 matLookAt(const vec3 &_eye, const vec3 &_target, const vec3 &_up)
Create projection matrix with camera property (camera view in -z axis)
const Matrix4 & operator+=(const Matrix4 &_obj)
Operator+= Addition an other matrix with this one.
Matrix4 operator+(const Matrix4 &_obj) const
Operator+ Addition an other matrix with this one.
const Matrix4 & operator=(const Matrix4 &_obj)
Operator= Asign the current object with an other object.
Matrix4 matPerspective(float _foxy, float _aspect, float _zNear, float _zFar)
Create projection matrix with human repensentation view (camera view in -z axis)
const Matrix4 & operator-=(const Matrix4 &_obj)
Operator-= Decrement an other matrix with this one.
bool operator==(const Matrix4 &_obj) const
Equality compare operator with an other object.
Matrix4 operator*(const Matrix4 &_obj) const
Operator* Multiplication an other matrix with this one.
Matrix4 matRotate(vec3 _normal, float _angleRad=0.0)
Create a matrix 3D with a simple rotation.
bool operator!=(const Matrix4 &_obj) const
In-Equality compare operator with an other object.
const Matrix4 & operator*=(const Matrix4 &_obj)
Operator*= Multiplication an other matrix with this one.