Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Matrix3.hpp>
Public Member Functions | |
| template<typename T > | |
| Matrix3 (const T &m) | |
| Matrix3 () | |
| Matrix3 (scalar_type n) | |
| Matrix3 (scalar_type e00, scalar_type e01, scalar_type e02, scalar_type e10, scalar_type e11, scalar_type e12, scalar_type e20, scalar_type e21, scalar_type e22) | |
| const Vector3< scalar_type > & | operator[] (unsigned int i) const |
| Vector3< scalar_type > & | operator[] (unsigned int i) |
| Vector2< scalar_type > | getX () const |
| Vector2< scalar_type > | getY () const |
| Vector2< scalar_type > | getT () const |
| Matrix3 & | setX (const Vector2< scalar_type > &v) |
| Matrix3 & | setY (const Vector2< scalar_type > &v) |
| Matrix3 & | setT (const Vector2< scalar_type > &v) |
| bool | operator== (const Matrix3 &m) const |
| bool | operator!= (const Matrix3 &m) const |
| Matrix3 & | operator= (const Matrix3 &m) |
| Matrix3 | operator+ (const Matrix3 &m) const |
| Matrix3 & | operator+= (const Matrix3 &m) |
| Matrix3 | operator- (const Matrix3 &m) const |
| Matrix3 & | operator-= (const Matrix3 &m) |
| Matrix3 & | operator*= (const Matrix3 &m) |
| Matrix3 | operator- () const |
| Matrix3 | operator+ (scalar_type d) const |
| Matrix3 & | operator+= (scalar_type d) |
| Matrix3 | operator- (scalar_type d) const |
| Matrix3 & | operator-= (scalar_type d) |
| Matrix3 | operator* (scalar_type d) const |
| Matrix3 & | operator*= (scalar_type d) |
| Matrix3 | operator/ (scalar_type d) const |
| Matrix3 & | operator/= (scalar_type d) |
| bool | isIdentity () const |
| Matrix2< scalar_type > | get2x2 () const |
| void | set2x2 (const Matrix2< scalar_type > &m) |
| This writes only on the upper 2x2 part of the matrix without touching the last row and column. | |
| scalar_type * | ptr () |
| const scalar_type * | ptr () const |
| Matrix3 & | transpose () |
| bool | isNull () const |
| void | setIdentity () |
| Matrix3 | inverse (bool *invertible=NULL) const |
| Matrix3 & | invert (bool *invertible=NULL) |
| const scalar_type & | e (int i, int j) const |
| scalar_type & | e (int i, int j) |
| Matrix3 & | rotate (scalar_type degrees) |
| Matrix3 & | translate (scalar_type x, scalar_type y) |
| Matrix3 & | translate (const Vector2< scalar_type > &v) |
| Matrix3 & | scale (scalar_type x, scalar_type y) |
Static Public Member Functions | |
| static Matrix3 | rotation (scalar_type degrees) |
| static Matrix3 | translation (const Vector2< scalar_type > &v) |
| static Matrix3 | translation (scalar_type x, scalar_type y) |
| static Matrix3 | scaling (scalar_type x, scalar_type y) |
Protected Attributes | |
| Vector3< scalar_type > | mVec [3] |
| vl::Matrix3< scalar_type >::Matrix3 | ( | const T & | m | ) | [inline, explicit] |
| vl::Matrix3< scalar_type >::Matrix3 | ( | ) | [inline] |
| vl::Matrix3< scalar_type >::Matrix3 | ( | scalar_type | n | ) | [inline] |
| vl::Matrix3< scalar_type >::Matrix3 | ( | scalar_type | e00, | |
| scalar_type | e01, | |||
| scalar_type | e02, | |||
| scalar_type | e10, | |||
| scalar_type | e11, | |||
| scalar_type | e12, | |||
| scalar_type | e20, | |||
| scalar_type | e21, | |||
| scalar_type | e22 | |||
| ) | [inline, explicit] |
| const Vector3<scalar_type>& vl::Matrix3< scalar_type >::operator[] | ( | unsigned int | i | ) | const [inline] |
| Vector3<scalar_type>& vl::Matrix3< scalar_type >::operator[] | ( | unsigned int | i | ) | [inline] |
| Vector2<scalar_type> vl::Matrix3< scalar_type >::getX | ( | ) | const [inline] |
| Vector2<scalar_type> vl::Matrix3< scalar_type >::getY | ( | ) | const [inline] |
| Vector2<scalar_type> vl::Matrix3< scalar_type >::getT | ( | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::setX | ( | const Vector2< scalar_type > & | v | ) | [inline] |
| Matrix3& vl::Matrix3< scalar_type >::setY | ( | const Vector2< scalar_type > & | v | ) | [inline] |
| Matrix3& vl::Matrix3< scalar_type >::setT | ( | const Vector2< scalar_type > & | v | ) | [inline] |
| bool vl::Matrix3< scalar_type >::operator== | ( | const Matrix3< scalar_type > & | m | ) | const [inline] |
| bool vl::Matrix3< scalar_type >::operator!= | ( | const Matrix3< scalar_type > & | m | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator= | ( | const Matrix3< scalar_type > & | m | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator+ | ( | const Matrix3< scalar_type > & | m | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator+= | ( | const Matrix3< scalar_type > & | m | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator- | ( | const Matrix3< scalar_type > & | m | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator-= | ( | const Matrix3< scalar_type > & | m | ) | [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator*= | ( | const Matrix3< scalar_type > & | m | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator- | ( | ) | const [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator+ | ( | scalar_type | d | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator+= | ( | scalar_type | d | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator- | ( | scalar_type | d | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator-= | ( | scalar_type | d | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator* | ( | scalar_type | d | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator*= | ( | scalar_type | d | ) | [inline] |
| Matrix3 vl::Matrix3< scalar_type >::operator/ | ( | scalar_type | d | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::operator/= | ( | scalar_type | d | ) | [inline] |
| bool vl::Matrix3< scalar_type >::isIdentity | ( | ) | const [inline] |
| Matrix2<scalar_type> vl::Matrix3< scalar_type >::get2x2 | ( | ) | const [inline] |
| void vl::Matrix3< scalar_type >::set2x2 | ( | const Matrix2< scalar_type > & | m | ) | [inline] |
This writes only on the upper 2x2 part of the matrix without touching the last row and column.
| scalar_type* vl::Matrix3< scalar_type >::ptr | ( | ) | [inline] |
| const scalar_type* vl::Matrix3< scalar_type >::ptr | ( | ) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::transpose | ( | ) | [inline] |
| bool vl::Matrix3< scalar_type >::isNull | ( | ) | const [inline] |
| void vl::Matrix3< scalar_type >::setIdentity | ( | ) | [inline] |
| Matrix3< scalar_type > vl::Matrix3< scalar_type >::inverse | ( | bool * | invertible = NULL |
) | const [inline] |
| Matrix3& vl::Matrix3< scalar_type >::invert | ( | bool * | invertible = NULL |
) | [inline] |
| const scalar_type& vl::Matrix3< scalar_type >::e | ( | int | i, | |
| int | j | |||
| ) | const [inline] |
| scalar_type& vl::Matrix3< scalar_type >::e | ( | int | i, | |
| int | j | |||
| ) | [inline] |
| Matrix3< scalar_type > vl::Matrix3< scalar_type >::rotation | ( | scalar_type | degrees | ) | [inline, static] |
| Matrix3& vl::Matrix3< scalar_type >::rotate | ( | scalar_type | degrees | ) | [inline] |
| static Matrix3 vl::Matrix3< scalar_type >::translation | ( | const Vector2< scalar_type > & | v | ) | [inline, static] |
| static Matrix3 vl::Matrix3< scalar_type >::translation | ( | scalar_type | x, | |
| scalar_type | y | |||
| ) | [inline, static] |
| Matrix3& vl::Matrix3< scalar_type >::translate | ( | scalar_type | x, | |
| scalar_type | y | |||
| ) | [inline] |
| Matrix3& vl::Matrix3< scalar_type >::translate | ( | const Vector2< scalar_type > & | v | ) | [inline] |
| static Matrix3 vl::Matrix3< scalar_type >::scaling | ( | scalar_type | x, | |
| scalar_type | y | |||
| ) | [inline, static] |
| Matrix3& vl::Matrix3< scalar_type >::scale | ( | scalar_type | x, | |
| scalar_type | y | |||
| ) | [inline] |
Vector3<scalar_type> vl::Matrix3< scalar_type >::mVec[3] [protected] |