NL3D::CPlaneBasis Struct Reference

#include <ps_plane_basis.h>


Detailed Description

A basis for plane object, used by particle by face and shockwaves It's a like a 2x3 matrix, (with only the X and Y vector defined)

Definition at line 46 of file ps_plane_basis.h.

Public Member Functions

 CPlaneBasis (const NLMISC::CVector &x, const NLMISC::CVector &y)
 CPlaneBasis (const NLMISC::CVector &normal)
 CPlaneBasis ()
NLMISC::CVector getNormal (void) const
 compute the normal of the plane basis

void serial (NLMISC::IStream &f) throw (NLMISC::EStream)

Data Fields

NLMISC::CVector X
NLMISC::CVector Y


Constructor & Destructor Documentation

NL3D::CPlaneBasis::CPlaneBasis  )  [inline]
 

Definition at line 53 of file ps_plane_basis.h.

00053 {}

NL3D::CPlaneBasis::CPlaneBasis const NLMISC::CVector normal  )  [inline]
 

Definition at line 57 of file ps_plane_basis.h.

References NLMISC::CMatrix::getI(), and NLMISC::CMatrix::getJ().

00058         {
00059                 NLMISC::CMatrix mat;
00060                 CPSUtil::buildSchmidtBasis(normal, mat) ;
00061                 X = mat.getI() ;
00062                 Y = mat.getJ() ;
00063         }

NL3D::CPlaneBasis::CPlaneBasis const NLMISC::CVector x,
const NLMISC::CVector y
[inline]
 

Definition at line 66 of file ps_plane_basis.h.

References x, and y.

00066                                                                     : X(x), Y(y)
00067         {               
00068         }


Member Function Documentation

NLMISC::CVector NL3D::CPlaneBasis::getNormal void   )  const [inline]
 

compute the normal of the plane basis

Definition at line 71 of file ps_plane_basis.h.

Referenced by NL3D::PSValueBlend().

00072         {
00073                 return X ^ Y ;
00074         }

void NL3D::CPlaneBasis::serial NLMISC::IStream f  )  throw (NLMISC::EStream) [inline]
 

Definition at line 77 of file ps_plane_basis.h.

00078         {
00079                 f.serial(X, Y) ;
00080         }


Field Documentation

NLMISC::CVector NL3D::CPlaneBasis::X
 

Definition at line 48 of file ps_plane_basis.h.

Referenced by NL3D::CPSRotated3DPlaneParticle::CPSRotated3DPlaneParticle(), NL3D::CPSFaceHelper::drawFaces(), NL3D::CPSConstraintMeshHelper::drawMeshs(), NL3D::CPSShockWaveHelper::drawShockWave(), NL3D::CPSPlaneBasisFollowSpeed::make(), NL3D::operator<(), NL3D::PSBinOpModulate(), and NL3D::CPSMesh::updatePos().

NLMISC::CVector NL3D::CPlaneBasis::Y
 

Definition at line 49 of file ps_plane_basis.h.

Referenced by NL3D::CPSRotated3DPlaneParticle::CPSRotated3DPlaneParticle(), NL3D::CPSFaceHelper::drawFaces(), NL3D::CPSConstraintMeshHelper::drawMeshs(), NL3D::CPSShockWaveHelper::drawShockWave(), NL3D::CPSPlaneBasisFollowSpeed::make(), NL3D::operator<(), NL3D::PSBinOpModulate(), and NL3D::CPSMesh::updatePos().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 07:01:16 2004 for NeL by doxygen 1.3.6