Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Types | Public Member Functions | Protected Attributes

vl::Matrix2< T_scalar_type > Class Template Reference

The Matrix2 class is a template class that implements a generic 2x2 matrix, see also vl::dmat2, vl::fmat2, vl::umat2, vl::imat2. More...

#include <Matrix2.hpp>

List of all members.

Public Types

typedef T_scalar_type scalar_type

Public Member Functions

template<typename T >
 Matrix2 (const T &m)
 Matrix2 ()
 Matrix2 (T_scalar_type n)
 Matrix2 (T_scalar_type e00, T_scalar_type e01, T_scalar_type e10, T_scalar_type e11)
Matrix2fill (T_scalar_type val)
T_scalar_type diff (const Matrix2 &other)
const Vector2< T_scalar_type > & operator[] (unsigned int i) const
Vector2< T_scalar_type > & operator[] (unsigned int i)
bool operator== (const Matrix2 &m) const
bool operator!= (const Matrix2 &m) const
Matrix2operator= (const Matrix2 &m)
Matrix2 operator+ (const Matrix2 &m) const
Matrix2operator+= (const Matrix2 &m)
Matrix2 operator- (const Matrix2 &m) const
Matrix2operator-= (const Matrix2 &m)
Matrix2operator*= (const Matrix2 &m)
Matrix2 operator- () const
Matrix2 operator+ (T_scalar_type d) const
Matrix2operator+= (T_scalar_type d)
Matrix2 operator- (T_scalar_type d) const
Matrix2operator-= (T_scalar_type d)
Matrix2 operator* (T_scalar_type d) const
Matrix2operator*= (T_scalar_type d)
Matrix2 operator/ (T_scalar_type d) const
Matrix2operator/= (T_scalar_type d)
bool isIdentity () const
T_scalar_type * ptr ()
const T_scalar_type * ptr () const
Matrix2transpose ()
Matrix2 getTransposed () const
void getTransposed (Matrix2 &dest) const
bool isNull () const
void setIdentity ()
T_scalar_type getInverse (Matrix2 &dest) const
Matrix2 getInverse (T_scalar_type *determinant=NULL) const
Matrix2invert (T_scalar_type *determinant=NULL)
const T_scalar_type & e (int i, int j) const
T_scalar_type & e (int i, int j)

Protected Attributes

Vector2< T_scalar_type > mVec [2]

Detailed Description

template<typename T_scalar_type>
class vl::Matrix2< T_scalar_type >

The Matrix2 class is a template class that implements a generic 2x2 matrix, see also vl::dmat2, vl::fmat2, vl::umat2, vl::imat2.

See also:
Vector4, Vector3, Vector2, Matrix4, Matrix3

Member Typedef Documentation

template<typename T_scalar_type >
typedef T_scalar_type vl::Matrix2< T_scalar_type >::scalar_type

Constructor & Destructor Documentation

template<typename T_scalar_type >
template<typename T >
vl::Matrix2< T_scalar_type >::Matrix2 ( const T &  m ) [inline, explicit]
template<typename T_scalar_type >
vl::Matrix2< T_scalar_type >::Matrix2 (  ) [inline]
template<typename T_scalar_type >
vl::Matrix2< T_scalar_type >::Matrix2 ( T_scalar_type  n ) [inline]
template<typename T_scalar_type >
vl::Matrix2< T_scalar_type >::Matrix2 ( T_scalar_type  e00,
T_scalar_type  e01,
T_scalar_type  e10,
T_scalar_type  e11 
) [inline, explicit]

Member Function Documentation

template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::fill ( T_scalar_type  val ) [inline]
template<typename T_scalar_type >
T_scalar_type vl::Matrix2< T_scalar_type >::diff ( const Matrix2< T_scalar_type > &  other ) [inline]
template<typename T_scalar_type >
const Vector2<T_scalar_type>& vl::Matrix2< T_scalar_type >::operator[] ( unsigned int  i ) const [inline]
template<typename T_scalar_type >
Vector2<T_scalar_type>& vl::Matrix2< T_scalar_type >::operator[] ( unsigned int  i ) [inline]
template<typename T_scalar_type >
bool vl::Matrix2< T_scalar_type >::operator== ( const Matrix2< T_scalar_type > &  m ) const [inline]
template<typename T_scalar_type >
bool vl::Matrix2< T_scalar_type >::operator!= ( const Matrix2< T_scalar_type > &  m ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator= ( const Matrix2< T_scalar_type > &  m ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator+ ( const Matrix2< T_scalar_type > &  m ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator+= ( const Matrix2< T_scalar_type > &  m ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator- ( const Matrix2< T_scalar_type > &  m ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator-= ( const Matrix2< T_scalar_type > &  m ) [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator*= ( const Matrix2< T_scalar_type > &  m ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator- (  ) const [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator+ ( T_scalar_type  d ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator+= ( T_scalar_type  d ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator- ( T_scalar_type  d ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator-= ( T_scalar_type  d ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator* ( T_scalar_type  d ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator*= ( T_scalar_type  d ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::operator/ ( T_scalar_type  d ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::operator/= ( T_scalar_type  d ) [inline]
template<typename T_scalar_type >
bool vl::Matrix2< T_scalar_type >::isIdentity (  ) const [inline]
template<typename T_scalar_type >
T_scalar_type* vl::Matrix2< T_scalar_type >::ptr (  ) [inline]
template<typename T_scalar_type >
const T_scalar_type* vl::Matrix2< T_scalar_type >::ptr (  ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::transpose (  ) [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::getTransposed (  ) const [inline]
template<typename T_scalar_type >
void vl::Matrix2< T_scalar_type >::getTransposed ( Matrix2< T_scalar_type > &  dest ) const [inline]
template<typename T_scalar_type >
bool vl::Matrix2< T_scalar_type >::isNull (  ) const [inline]
template<typename T_scalar_type >
void vl::Matrix2< T_scalar_type >::setIdentity (  ) [inline]
template<typename T_scalar_type >
T_scalar_type vl::Matrix2< T_scalar_type >::getInverse ( Matrix2< T_scalar_type > &  dest ) const [inline]
template<typename T_scalar_type >
Matrix2 vl::Matrix2< T_scalar_type >::getInverse ( T_scalar_type *  determinant = NULL ) const [inline]
template<typename T_scalar_type >
Matrix2& vl::Matrix2< T_scalar_type >::invert ( T_scalar_type *  determinant = NULL ) [inline]
template<typename T_scalar_type >
const T_scalar_type& vl::Matrix2< T_scalar_type >::e ( int  i,
int  j 
) const [inline]
template<typename T_scalar_type >
T_scalar_type& vl::Matrix2< T_scalar_type >::e ( int  i,
int  j 
) [inline]

Member Data Documentation

template<typename T_scalar_type >
Vector2<T_scalar_type> vl::Matrix2< T_scalar_type >::mVec[2] [protected]

The documentation for this class was generated from the following file:

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:08:06.
Permission is granted to use this page to write and publish articles regarding Visualization Library.