Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

Matrice44 Class Reference

#include <Matrice44.hpp>

List of all members.

Public Methods

 Matrice44 ()
void CopyFrom (Matrice44 &m)
void multiplyByMatrix (Matrice44 &m)
void setIdentity ()
void setNull ()
void setTranslateX (realtype x)
void setTranslateY (realtype y)
void setTranslateZ (realtype z)
void setRotateX (realtype cos, realtype sin)
void setRotateY (realtype cos, realtype sin)
void setRotateZ (realtype cos, realtype sin)
void setScaleX (realtype s)
void setScaleY (realtype s)
void setScaleZ (realtype s)
BOOL isIdentity ()

Public Attributes

realtype xx
realtype xy
realtype xz
realtype xw
realtype yx
realtype yy
realtype yz
realtype yw
realtype zx
realtype zy
realtype zz
realtype zw
realtype wx
realtype wy
realtype wz
realtype ww


Constructor & Destructor Documentation

Matrice44::Matrice44   [inline]
 

Definition at line 16 of file Matrice44.hpp.

00016 { setIdentity(); }


Member Function Documentation

void Matrice44::CopyFrom Matrice44 &    m
 

BOOL Matrice44::isIdentity  
 

Definition at line 184 of file Matrice44.cpp.

00185 {
00186  return ( xx == 1 && xy == 0 && xz == 0 && xw == 0 &&
00187           yx == 0 && yy == 1 && yz == 0 && yw == 0 &&
00188           zx == 0 && zy == 0 && zz == 1 && zw == 0 &&
00189           wx == 0 && wy == 0 && wz == 0 && ww == 1
00190         );
00191 }

void Matrice44::multiplyByMatrix Matrice44 &    m
 

Referenced by CapteurVisuel3D::CalculPerspective().

void Matrice44::setIdentity  
 

Definition at line 103 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective(), Matrice44(), setRotateX(), setRotateY(), and setRotateZ().

00103                             {
00104  setNull();
00105  xx = yy = zz = ww = 1;
00106 }

void Matrice44::setNull  
 

Definition at line 109 of file Matrice44.cpp.

Referenced by setIdentity().

00110 {
00111  xx = xy = xz = xw = 0;
00112  yx = yy = yz = yw = 0;
00113  zx = zy = zz = zw = 0;
00114  wx = wy = wz = ww = 0;
00115 }

void Matrice44::setRotateX realtype    cos,
realtype    sin
 

Definition at line 136 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective().

00137 {
00138  setIdentity();
00139  yy =  cos;
00140  yz =  sin;
00141  zz =  cos;
00142  zy = -sin;
00143 }

void Matrice44::setRotateY realtype    cos,
realtype    sin
 

Definition at line 146 of file Matrice44.cpp.

00147 {
00148  setIdentity();
00149  xx =  cos;
00150  xz = -sin;
00151  zz =  cos;
00152  zx =  sin;
00153 }

void Matrice44::setRotateZ realtype    cos,
realtype    sin
 

Definition at line 156 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective().

00157 {
00158  setIdentity();
00159  xx =  cos;
00160  xy =  sin;
00161  yy =  cos;
00162  yx = -sin;
00163 }

void Matrice44::setScaleX realtype    s
 

Definition at line 166 of file Matrice44.cpp.

00167 {
00168  xx = s;
00169 }

void Matrice44::setScaleY realtype    s
 

Definition at line 172 of file Matrice44.cpp.

00173 {
00174  yy = s;
00175 }

void Matrice44::setScaleZ realtype    s
 

Definition at line 178 of file Matrice44.cpp.

00179 {
00180  zz = s;
00181 }

void Matrice44::setTranslateX realtype    x
 

Definition at line 118 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective().

00119 {
00120  wx = x;
00121 }

void Matrice44::setTranslateY realtype    y
 

Definition at line 124 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective().

00125 {
00126  wy = y;
00127 }

void Matrice44::setTranslateZ realtype    z
 

Definition at line 130 of file Matrice44.cpp.

Referenced by CapteurVisuel3D::CalculPerspective().

00131 {
00132  wz = z;
00133 }


Member Data Documentation

realtype Matrice44::ww
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::wx
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::wy
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::wz
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::xw
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::xx
 

Definition at line 11 of file Matrice44.hpp.

Referenced by CapteurVisuel3D::CalculPerspective(), and Sommet3DH::multiplyByMatrix().

realtype Matrice44::xy
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::xz
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::yw
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::yx
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::yy
 

Definition at line 11 of file Matrice44.hpp.

Referenced by CapteurVisuel3D::CalculPerspective(), and Sommet3DH::multiplyByMatrix().

realtype Matrice44::yz
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::zw
 

Definition at line 11 of file Matrice44.hpp.

Referenced by CapteurVisuel3D::CalculPerspective(), and Sommet3DH::multiplyByMatrix().

realtype Matrice44::zx
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::zy
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().

realtype Matrice44::zz
 

Definition at line 11 of file Matrice44.hpp.

Referenced by Sommet3DH::multiplyByMatrix().


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:49:20 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001