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

Sommet3DH Struct Reference

#include <Model.hpp>

Inheritance diagram for Sommet3DH::

Sommet3D Sommet2D List of all members.

Public Methods

 Sommet3DH ()
 Sommet3DH (realtype X, realtype Y, realtype Z, realtype W)
 Sommet3DH (const Sommet3DH &s)
Sommet3DH & multiplyByMatrix (const Matrice44 &m)
const Sommet3DH & operator= (const Sommet3DH &v)
const Sommet3DH & operator= (const Sommet3D &v)
const Sommet3DH & operator= (const Sommet2D &v)

Public Attributes

realtype x
realtype y
realtype z
realtype w

Constructor & Destructor Documentation

Sommet3DH::Sommet3DH   [inline]
 

Definition at line 72 of file Sommet.hpp.

00072 : w( 1.0 ) { }

Sommet3DH::Sommet3DH realtype    X,
realtype    Y,
realtype    Z,
realtype    W
[inline]
 

Definition at line 74 of file Sommet.hpp.

00077                         : Sommet3D( X, Y, Z ), w( W ) { }

Sommet3DH::Sommet3DH const Sommet3DH &    s [inline]
 

Definition at line 79 of file Sommet.hpp.

00079 : Sommet3D( s.x, s.y, s.z ), w( s.w ) { }


Member Function Documentation

const Sommet3DH & Sommet3DH::multiplyByMatrix const Matrice44   m
 

Definition at line 67 of file Sommet.cpp.

00068 {
00069 
00070  realtype tmp_x = x * m.xx + y * m.yx +
00071                   z * m.zx + w * m.wx;
00072 
00073  realtype tmp_y = x * m.xy + y * m.yy +
00074                   z * m.zy + w * m.wy;
00075  
00076  realtype tmp_z = x * m.xz + y * m.yz +
00077                   z * m.zz + w * m.wz;
00078 
00079  realtype tmp_w = x * m.xw + y * m.yw +
00080                   z * m.zw + w * m.ww;
00081 
00082  x = tmp_x;
00083  y = tmp_y;
00084  z = tmp_z;
00085  w = tmp_w;
00086 
00087  return *this;
00088 }

const Sommet3DH & Sommet3DH::operator= const Sommet2D   v
 

Reimplemented from Sommet3D.

Definition at line 58 of file Sommet.cpp.

00059 {
00060   x = v.x; 
00061   y = v.y; 
00062   z = 0; 
00063   w = 1;
00064   return *this;
00065 }

const Sommet3DH & Sommet3DH::operator= const Sommet3D   v
 

Reimplemented from Sommet3D.

Definition at line 49 of file Sommet.cpp.

00050 {
00051   x = v.x;
00052   y = v.y;
00053   z = v.z;
00054   w = 1;
00055   return *this;
00056 }

const Sommet3DH & Sommet3DH::operator= const Sommet3DH &    v
 

Definition at line 40 of file Sommet.cpp.

00041 {
00042   x = v.x;
00043   y = v.y;
00044   z = v.z;
00045   w = v.w; 
00046   return *this;
00047 }


Member Data Documentation

realtype Sommet3DH::w
 

Definition at line 70 of file Sommet.hpp.

Referenced by Cube3D::init(), operator<<(), and operator>>().

realtype Sommet3DH::x
 

Reimplemented from Sommet3D.

Definition at line 47 of file Model.hpp.

Referenced by Vector3DH::compox(), Cube3D::init(), Vector3DH::normalisation(), operator<<(), and operator>>().

realtype Sommet3DH::y
 

Reimplemented from Sommet3D.

Definition at line 47 of file Model.hpp.

Referenced by Vector3DH::compoy(), Cube3D::init(), Vector3DH::normalisation(), operator<<(), and operator>>().

realtype Sommet3DH::z
 

Reimplemented from Sommet3D.

Definition at line 47 of file Model.hpp.

Referenced by Vector3DH::compoz(), Cube3D::init(), Vector3DH::normalisation(), operator<<(), and operator>>().


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