NLPACS::CMoveSurfaceDesc Class Reference

#include <collision_surface_temp.h>


Detailed Description

Description of the contact of a collision against a chain.

Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 162 of file collision_surface_temp.h.

Public Member Functions

 CMoveSurfaceDesc (CRational64 t, CSurfaceIdent left, CSurfaceIdent right)
 CMoveSurfaceDesc ()
const CSurfaceIdentgetOtherSurface (const CSurfaceIdent &surf)
 Return Left if surf==Right, else return Right.

bool hasSurface (const CSurfaceIdent &surf)
 test if Left or Right == surf.

bool operator< (const CMoveSurfaceDesc &o) const

Data Fields

uint16 ChainId
 Chain Id of the exterior edge.

CRational64 ContactTime
 This is the 128 bits rational float, when the movement reach this surface.

bool ExteriorEdge
 Is it an interface between exterior and interior.

CSurfaceIdent LeftSurface
 To which chain we have collided.

bool MovementSens
 true if Dot product between EdgeCollide Norm and Movement is >=0.

CSurfaceIdent RightSurface
 To which chain we have collided.


Constructor & Destructor Documentation

NLPACS::CMoveSurfaceDesc::CMoveSurfaceDesc  )  [inline]
 

Definition at line 181 of file collision_surface_temp.h.

00181 : ExteriorEdge(false) {}

NLPACS::CMoveSurfaceDesc::CMoveSurfaceDesc CRational64  t,
CSurfaceIdent  left,
CSurfaceIdent  right
[inline]
 

Definition at line 182 of file collision_surface_temp.h.

References t.

00182 : ContactTime(t), LeftSurface(left), RightSurface(right), ExteriorEdge(false) {}


Member Function Documentation

const CSurfaceIdent& NLPACS::CMoveSurfaceDesc::getOtherSurface const CSurfaceIdent surf  )  [inline]
 

Return Left if surf==Right, else return Right.

Definition at line 195 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

00196         {
00197                 if(RightSurface==surf)
00198                         return LeftSurface;
00199                 else
00200                         return RightSurface;
00201         }

bool NLPACS::CMoveSurfaceDesc::hasSurface const CSurfaceIdent surf  )  [inline]
 

test if Left or Right == surf.

Definition at line 189 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

00190         {
00191                 return LeftSurface==surf || RightSurface==surf;
00192         }

bool NLPACS::CMoveSurfaceDesc::operator< const CMoveSurfaceDesc o  )  const [inline]
 

Definition at line 183 of file collision_surface_temp.h.

References ContactTime.

00184         {
00185                 return ContactTime<o.ContactTime;
00186         }


Field Documentation

uint16 NLPACS::CMoveSurfaceDesc::ChainId
 

Chain Id of the exterior edge.

Definition at line 178 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

CRational64 NLPACS::CMoveSurfaceDesc::ContactTime
 

This is the 128 bits rational float, when the movement reach this surface.

Definition at line 166 of file collision_surface_temp.h.

Referenced by operator<(), and NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

bool NLPACS::CMoveSurfaceDesc::ExteriorEdge
 

Is it an interface between exterior and interior.

Definition at line 172 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

CSurfaceIdent NLPACS::CMoveSurfaceDesc::LeftSurface
 

To which chain we have collided.

Definition at line 169 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

bool NLPACS::CMoveSurfaceDesc::MovementSens
 

true if Dot product between EdgeCollide Norm and Movement is >=0.

Definition at line 175 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().

CSurfaceIdent NLPACS::CMoveSurfaceDesc::RightSurface
 

To which chain we have collided.

Definition at line 169 of file collision_surface_temp.h.

Referenced by NLPACS::CGlobalRetriever::testMovementWithCollisionChains().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 14:19:06 2004 for NeL by doxygen 1.3.6