VERTEX Class Reference

#include <quat.h>

List of all members.

Public Member Functions

VERTEX operator+ (VERTEX v)
VERTEX operator- (VERTEX v)
 VERTEX ()
float len ()
VERTEX normalize ()
VERTEX cross (VERTEX b)
void Scale (float scalar)
VERTEX ScaleR (float scalar)
float dot (VERTEX b)
void Set (float nx, float ny, float nz)
void Set (float *f3)
VERTEX InvertR ()
float * v3 ()
void zero ()
bool equals (VERTEX other)
void flabs ()
float v (int i)
void DebugPrint ()
void DebugPrint (ostream &out)
VERTEX interpolatewith (VERTEX other, float percent)
bool nan ()

Public Attributes

float x
float y
float z

Private Attributes

float float3 [3]


Detailed Description

Definition at line 14 of file quat.h.


Constructor & Destructor Documentation

VERTEX::VERTEX  ) 
 

Definition at line 754 of file quat.cpp.

References x, y, and z.


Member Function Documentation

VERTEX VERTEX::cross VERTEX  b  ) 
 

Definition at line 720 of file quat.cpp.

References x, y, and z.

Referenced by UTILITY::IntersectQuadrilateralF(), AABB::IntersectRay(), and AABB::IntersectSegment().

void VERTEX::DebugPrint ostream &  out  ) 
 

Definition at line 813 of file quat.cpp.

References x, y, and z.

void VERTEX::DebugPrint  )  [inline]
 

Definition at line 45 of file quat.h.

Referenced by TRACK::Collide(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideBranchModel(), BEZIER::CollideSubDivQuadSimpleNorm(), AABB::DebugPrint(), and LoadWorld().

float VERTEX::dot VERTEX  b  ) 
 

Definition at line 788 of file quat.cpp.

References x, y, and z.

Referenced by OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideDriveable(), QUATERNION::GetAngleBetween(), UTILITY::IntersectQuadrilateralF(), and MATRIX3::Multiply().

bool VERTEX::equals VERTEX  other  ) 
 

Definition at line 838 of file quat.cpp.

References x, y, and z.

Referenced by TRACK::Collide(), and TRACK::GetPatch().

void VERTEX::flabs  )  [inline]
 

Definition at line 41 of file quat.h.

References x, y, and z.

Referenced by AABB::IntersectRay().

VERTEX VERTEX::interpolatewith VERTEX  other,
float  percent
 

Definition at line 793 of file quat.cpp.

References x, y, and z.

VERTEX VERTEX::InvertR  ) 
 

Definition at line 777 of file quat.cpp.

References x, y, and z.

float VERTEX::len  ) 
 

Definition at line 677 of file quat.cpp.

References SETTINGS::GetSettingsDir(), settings, x, y, and z.

Referenced by BEZIER::CollideQuadNewton(), CAMERA::MoveRelativeConstrainY(), normalize(), and BEZIER::SetFromCorners().

bool VERTEX::nan  ) 
 

Definition at line 830 of file quat.cpp.

Referenced by TRACK::Collide(), and TRACK::ElevationSeg().

VERTEX VERTEX::normalize  ) 
 

Definition at line 732 of file quat.cpp.

References len(), x, y, and z.

Referenced by BEZIER::Attach(), TRACK::Collide(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideDriveable(), OBJECTCOLLISION::CollideModelAABB(), BEZIER::CollideQuadNewton(), BEZIER::DrawSurf(), LoadWorld(), NormalFromTri(), BEZIER::SetFromCorners(), and MOUSE::UpdateCamera().

VERTEX VERTEX::operator+ VERTEX  v  ) 
 

Definition at line 648 of file quat.cpp.

References v(), x, y, and z.

VERTEX VERTEX::operator- VERTEX  v  ) 
 

Definition at line 659 of file quat.cpp.

References v(), x, y, and z.

void VERTEX::Scale float  scalar  ) 
 

Definition at line 759 of file quat.cpp.

References x, y, and z.

Referenced by OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideBranchModel(), OBJECTCOLLISION::CollideDriveable(), KEYMAN::DoHeldKeys(), LoadWorld(), CAMERA::MoveRelativeConstrainY(), BEZIER::SetFromCorners(), SOUNDMANAGER::SetListenerPos(), SOUNDMANAGER::SetListenerVel(), SOUNDMANAGER::SetPos(), SOUNDMANAGER::SetVel(), and Update().

VERTEX VERTEX::ScaleR float  scalar  ) 
 

Definition at line 766 of file quat.cpp.

References x, y, and z.

Referenced by BEZIER::Attach(), BEZIER::Bernstein(), JOEMODEL::Collide(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideDriveable(), BEZIER::CollideQuadNewton(), PARTICLE::DrawParticle(), VAMOSWORLD::Init(), Vamos_World::World::interact(), AABB::IntersectSegment(), LoadWorld(), AABB::SetFromCorners(), and BEZIER::SetFromCorners().

void VERTEX::Set float *  f3  ) 
 

Definition at line 823 of file quat.cpp.

References x, y, and z.

void VERTEX::Set float  nx,
float  ny,
float  nz
 

Definition at line 670 of file quat.cpp.

References x, y, and z.

Referenced by TRACK::Collide(), JOEMODEL::Collide(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideBranchGetTrisInBBox(), OBJECTCOLLISION::CollideBranchModel(), OBJECTCOLLISION::CollideDriveable(), VAMOSWORLD::Draw(), JOEMODEL::Draw(), VGUI::SpinningCar::Draw(), UTILITY::Draw2D(), VAMOSWORLD::draw_shadows(), UTILITY::DrawButton(), VAMOSWORLD::DrawCars(), VAMOSWORLD::DrawHUD(), OBJECTCOLLISION::GenerateBranches(), AABB::GetVerts(), Vamos_World::World::interact(), TRACK::Load(), LoadWorld(), AABB::SetFromCorners(), Vamos_Body::Gl_Car::transform_body(), and Update().

float VERTEX::v int  i  )  [inline]
 

Definition at line 43 of file quat.h.

References x, y, and z.

Referenced by operator+(), and operator-().

float * VERTEX::v3  ) 
 

Definition at line 804 of file quat.cpp.

References float3, x, y, and z.

Referenced by JOEMODEL::Collide(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideBranchModel(), OBJECTCOLLISION::CollideDriveable(), BEZIER::CollideNewton(), BEZIER::CollideSubDiv(), SOUNDMANAGER::SetListenerPos(), SOUNDMANAGER::SetListenerVel(), SOUNDMANAGER::SetPos(), SOUNDMANAGER::SetVel(), and Update().

void VERTEX::zero  ) 
 

Definition at line 818 of file quat.cpp.

References x, y, and z.

Referenced by OBJECTCOLLISION::CollideModelAABB(), VAMOSWORLD::SetCameraMode(), and TRACK::VisualizeRoads().


Member Data Documentation

float VERTEX::float3[3] [private]
 

Definition at line 18 of file quat.h.

Referenced by v3().

float VERTEX::x
 

Definition at line 21 of file quat.h.

Referenced by OBJECTS::Add(), PARTICLE::AddParticle(), UTILITY::BruteForceTriangleIntersectionF2(), OBJECTCOLLISION::CollideBranchModel(), cross(), DebugPrint(), KEYMAN::DoHeldKeys(), dot(), VAMOSWORLD::Draw(), JOEMODEL::Draw(), VGUI::SpinningCar::Draw(), VAMOSWORLD::DrawCars(), BACKDROP::DrawClouds(), BACKDROP::DrawDrop(), VAMOSWORLD::DrawHUD(), OBJECTS::DrawObject(), PARTICLE::DrawParticle(), BACKDROP::DrawRain(), BACKDROP::DrawSky(), BACKDROP::DrawSkyGradient(), equals(), flabs(), QUATERNION::GetAngleBetween(), QUATERNION::GetEuler(), CAMERA::GetPosition(), WEATHERVERTEX::GetVal(), CAMERA::GetVelocity(), AABB::GetVerts(), InitGameData(), PARTICLE::inrect(), interpolatewith(), AABB::IntersectAABB(), UTILITY::IntersectQuadrilateralF(), AABB::IntersectRay(), AABB::IntersectSegment(), InvertR(), len(), TRACK::Load(), CAMERA::LoadVelocityIdentity(), CAMERA::Move(), CAMERA::MoveRelative(), CAMERA::MoveRelativeConstrainY(), MATRIX3::Multiply(), normalize(), operator+(), operator-(), VERTEXD::operator=(), PointToTriDistance(), MATRIX3::ProjectionMatrix(), QUATERNION::RelativeMove(), Vamos_World::World::reset(), QUATERNION::RotateVec(), Scale(), ScaleR(), SelectCar(), Set(), AABB::SetFromCorners(), SOUNDMANAGER::SetListenerOrientation(), VAMOSWORLD::ShadowTexCoord(), Vamos_Body::Gl_Car::transform_body(), MOUSE::UpdateCamera(), v(), v3(), VERTEX(), VERTEXD::VERTEXD(), ROADSTRIP::Visualize(), BEZIER::Visualize(), TRACK::Write(), and zero().

float VERTEX::y
 

Definition at line 22 of file quat.h.

Referenced by PARTICLE::AddParticle(), UTILITY::BruteForceTriangleIntersectionF2(), OBJECTCOLLISION::CollideBranchModel(), BEZIER::CollideSubDivQuad(), BEZIER::CollideSubDivQuadSimpleNorm(), cross(), DebugPrint(), KEYMAN::DoHeldKeys(), dot(), VAMOSWORLD::Draw(), JOEMODEL::Draw(), VGUI::SpinningCar::Draw(), UTILITY::Draw2D(), VAMOSWORLD::DrawCars(), BACKDROP::DrawClouds(), BACKDROP::DrawDrop(), VAMOSWORLD::DrawHUD(), OBJECTS::DrawObject(), PARTICLE::DrawParticle(), BACKDROP::DrawRain(), BACKDROP::DrawSky(), BACKDROP::DrawSkyGradient(), BEZIER::DrawSurf(), TRACK::Elevation(), equals(), flabs(), QUATERNION::GetAngleBetween(), QUATERNION::GetEuler(), CAMERA::GetPosition(), WEATHERVERTEX::GetVal(), CAMERA::GetVelocity(), AABB::GetVerts(), VAMOSWORLD::Init(), SOUNDMANAGER::Init(), interpolatewith(), AABB::IntersectAABB(), UTILITY::IntersectQuadrilateralF(), AABB::IntersectRay(), AABB::IntersectSegment(), InvertR(), len(), TRACK::Load(), CAMERA::LoadVelocityIdentity(), LoadWorld(), CAMERA::Move(), CAMERA::MoveRelative(), CAMERA::MoveRelativeConstrainY(), MATRIX3::Multiply(), normalize(), operator+(), operator-(), VERTEXD::operator=(), PARTICLE::PARTICLE(), PointToTriDistance(), MATRIX3::ProjectionMatrix(), BEZIER::ReadFrom(), QUATERNION::RelativeMove(), Vamos_World::World::reset(), QUATERNION::RotateVec(), Scale(), ScaleR(), SelectCar(), Set(), AABB::SetFromCorners(), SOUNDMANAGER::SetListenerOrientation(), VAMOSWORLD::ShadowTexCoord(), Vamos_Body::Gl_Car::transform_body(), MOUSE::UpdateCamera(), v(), v3(), VERTEX(), VERTEXD::VERTEXD(), ROADSTRIP::Visualize(), BEZIER::Visualize(), TRACK::VisualizeRoads(), TRACK::Write(), BEZIER::WriteTo(), and zero().

float VERTEX::z
 

Definition at line 23 of file quat.h.

Referenced by OBJECTS::Add(), PARTICLE::AddParticle(), UTILITY::BruteForceTriangleIntersectionF2(), OBJECTCOLLISION::CollideAABB(), OBJECTCOLLISION::CollideBranch(), OBJECTCOLLISION::CollideBranchModel(), OBJECTCOLLISION::CollideDriveable(), cross(), DebugPrint(), KEYMAN::DoHeldKeys(), dot(), VAMOSWORLD::Draw(), JOEMODEL::Draw(), VGUI::SpinningCar::Draw(), VAMOSWORLD::DrawCars(), BACKDROP::DrawClouds(), BACKDROP::DrawDrop(), OBJECTS::DrawObject(), PARTICLE::DrawParticle(), BACKDROP::DrawRain(), BACKDROP::DrawSky(), BACKDROP::DrawSkyGradient(), equals(), flabs(), QUATERNION::GetAngleBetween(), QUATERNION::GetEuler(), CAMERA::GetPosition(), WEATHERVERTEX::GetVal(), CAMERA::GetVelocity(), AABB::GetVerts(), SOUNDMANAGER::Init(), InitGameData(), PARTICLE::inrect(), Vamos_World::World::interact(), interpolatewith(), AABB::IntersectAABB(), UTILITY::IntersectQuadrilateralF(), AABB::IntersectRay(), AABB::IntersectSegment(), InvertR(), len(), TRACK::Load(), CAMERA::LoadVelocityIdentity(), CAMERA::Move(), CAMERA::MoveRelative(), CAMERA::MoveRelativeConstrainY(), MATRIX3::Multiply(), normalize(), operator+(), operator-(), VERTEXD::operator=(), PointToTriDistance(), MATRIX3::ProjectionMatrix(), BEZIER::ReadFrom(), QUATERNION::RelativeMove(), Vamos_World::World::reset(), QUATERNION::RotateVec(), Scale(), ScaleR(), SelectCar(), Set(), AABB::SetFromCorners(), SOUNDMANAGER::SetListenerOrientation(), VAMOSWORLD::ShadowTexCoord(), Vamos_Body::Gl_Car::transform_body(), MOUSE::UpdateCamera(), v(), v3(), VERTEX(), VERTEXD::VERTEXD(), ROADSTRIP::Visualize(), BEZIER::Visualize(), TRACK::VisualizeRoads(), TRACK::Write(), BEZIER::WriteTo(), and zero().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:12:38 2006 by  doxygen 1.4.6