FixedVector Class Reference

#include <FixedVector.h>

List of all members.

Public Member Functions

 FixedVector ()
 FixedVector (fixed a, fixed b, fixed c)
 FixedVector (const FixedVector &v)
void zero ()
FixedVector Normalize ()
fixed Magnitude ()
FixedVector get2DPerp ()
fixed dotP (const FixedVector &Vin)
void StoreInvert ()
fixed Max ()
void StoreNormalize ()
FixedVector operator+ (const fixed m)
FixedVector operator+ (const FixedVector &Vin)
FixedVector operator- (const fixed m)
FixedVector operator- (const FixedVector &Vin)
void operator *= (const FixedVector &Vin)
FixedVector operator * (const FixedVector &Vin)
FixedVector operator * (const fixed a)
FixedVector operator/ (const fixed a)
FixedVector operator- ()
VectorasVector ()
void asVector (Vector &dest)
void operator *= (const fixed a)
void operator/= (const fixed a)
void operator+= (const fixed a)
void operator+= (const FixedVector &Vin)
void operator-= (const fixed a)
void operator-= (const FixedVector &Vin)
bool operator== (const FixedVector &Vin)
bool operator!= (const FixedVector &Vin1)
fixedoperator[] (const int m)
fixed const & operator[] (const int m) const
 operator fixed * ()

Static Public Member Functions

static FixedVectorfromVector (Vector &vec)
static FixedVectorgetNullVector ()

Protected Attributes

fixed V [3]


Detailed Description

Definition at line 28 of file FixedVector.h.


Constructor & Destructor Documentation

FixedVector::FixedVector (  )  [inline]

Definition at line 31 of file FixedVector.h.

References V.

FixedVector::FixedVector ( fixed  a,
fixed  b,
fixed  c 
) [inline]

Definition at line 36 of file FixedVector.h.

References V.

FixedVector::FixedVector ( const FixedVector v  )  [inline]

Definition at line 43 of file FixedVector.h.

References V.


Member Function Documentation

void FixedVector::zero (  )  [inline]

Definition at line 50 of file FixedVector.h.

References V.

Referenced by HeightMap::getNormal(), getNullVector(), and ViewPoints::simulate().

FixedVector FixedVector::Normalize (  )  [inline]

Definition at line 55 of file FixedVector.h.

References Magnitude().

Referenced by WeaponVelocity::fireWeapon(), WeaponTranslate::fireWeapon(), HeightMap::getNormal(), TankLib::getShotTowardsPosition(), Lightning::init(), Laser::init(), ShieldRound::inShield(), MovementMap::inShield(), and Laser::simulate().

fixed FixedVector::Magnitude (  ) 

Definition at line 104 of file FixedVector.cpp.

References FIXED_RESOLUTION, fixed::getInternal(), iSqrtL(), iSqrtLL(), and V.

Referenced by PhysicsParticleObject::checkCollision(), Boid2::checkGrouping(), TargetLife::collision(), TargetLife::collisionDistance(), WeaponRedirect::fireWeapon(), TankLib::getSniperShotTowardsPosition(), Laser::init(), ShieldRound::inShield(), Normalize(), Laser::simulate(), MissileActionRenderer::simulate(), StoreNormalize(), ShieldRound::tankInShield(), and Boid2::update().

FixedVector FixedVector::get2DPerp (  )  [inline]

Definition at line 66 of file FixedVector.h.

References V.

Referenced by TankLib::getShotTowardsPosition(), TargetMovementEntrySpline::simulate(), and TargetMovementEntryShips::simulate().

fixed FixedVector::dotP ( const FixedVector Vin  )  [inline]

Definition at line 72 of file FixedVector.h.

References V.

Referenced by PhysicsParticleObject::checkCollision(), Boid2::checkGrouping(), TankLib::getShotTowardsPosition(), and ShieldRound::inShield().

void FixedVector::StoreInvert (  )  [inline]

Definition at line 79 of file FixedVector.h.

References V.

Referenced by HeightMap::getNormal().

fixed FixedVector::Max (  )  [inline]

Definition at line 86 of file FixedVector.h.

References MAX, and V.

Referenced by ShieldSquare::getBoundingSize(), TargetRendererImplTarget::render(), and TargetRendererImplTank::render().

void FixedVector::StoreNormalize (  )  [inline]

Definition at line 91 of file FixedVector.h.

References Magnitude().

Referenced by Boid2::checkCollision(), PhysicsParticleObject::checkCollision(), Lightning::dispaceDirection(), WeaponRedirect::fireWeapon(), HeightMap::getNormal(), SplinePath::getPathAttrs(), PlacementTypeBounds::getPositions(), ViewPoints::simulate(), ShotProjectile::simulate(), and Boid2::update().

FixedVector FixedVector::operator+ ( const fixed  m  )  [inline]

Definition at line 98 of file FixedVector.h.

References V.

FixedVector FixedVector::operator+ ( const FixedVector Vin  )  [inline]

Definition at line 104 of file FixedVector.h.

References V.

FixedVector FixedVector::operator- ( const fixed  m  )  [inline]

Definition at line 113 of file FixedVector.h.

References V.

FixedVector FixedVector::operator- ( const FixedVector Vin  )  [inline]

Definition at line 119 of file FixedVector.h.

References V.

void FixedVector::operator *= ( const FixedVector Vin  )  [inline]

Definition at line 128 of file FixedVector.h.

References V.

FixedVector FixedVector::operator * ( const FixedVector Vin  )  [inline]

Definition at line 138 of file FixedVector.h.

References V.

FixedVector FixedVector::operator * ( const fixed  a  )  [inline]

Definition at line 148 of file FixedVector.h.

References V.

FixedVector FixedVector::operator/ ( const fixed  a  )  [inline]

Definition at line 154 of file FixedVector.h.

References V.

FixedVector FixedVector::operator- (  )  [inline]

Definition at line 161 of file FixedVector.h.

References V.

Vector& FixedVector::asVector (  )  [inline]

Definition at line 168 of file FixedVector.h.

References fixed::asFloat(), and V.

Referenced by ImageModifier::addHeightToBitmap(), ImageModifier::addLightMapToBitmap(), TankKeyboardControlUtil::autoAim(), ShotProjectile::doCollision(), SplinePath::draw(), ShieldHit::draw(), Lightning::draw(), WaterWaves::draw(), MissileActionRenderer::draw(), TargetRendererImplTank::drawArrow(), RenderGeoms::drawCollisionBounds(), RenderGeoms::drawCollisionGeoms(), TargetRendererImplTank::drawInfo(), TargetRendererImplTank::drawLife(), TargetRendererImplTank::drawLifeBar(), GLWPlanView::drawTanks(), WeaponNapalm::fireWeapon(), WeaponAnimation::fireWeapon(), HeightMap::getNormal(), TankAIAimGuesser::guess(), Teleport::init(), TankSay::init(), TankMovement::init(), Explosion::init(), TankKeyboardControlUtil::keyboardCheck(), TankAICurrentMove::makeGroupShot(), TankAICurrentMove::makeLaserSniperShot(), SkyRoof::makeList(), TankAICurrentMove::makeMoveShot(), TankAICurrentMove::makeProjectileShot(), TankAICurrentMove::makeSniperShot(), TargetCamera::moveCamera(), TankMovement::moveTank(), ParticleEngine::normalizedSimulate(), ClientDefenseHandler::processMessage(), ClientChannelManager::processMessage(), LandscapeSoundPositionSet::setPosition(), TargetLife::setTargetPosition(), TargetLife::setTargetPositionAndRotation(), TankAICurrentMove::shotAtTank(), PhysicsParticleActionObject::shotWallHit(), Teleport::simulate(), TankFired::simulate(), SoundAction::simulate(), ShotProjectile::simulate(), ShieldHit::simulate(), Lightning::simulate(), Explosion::simulate(), MissileActionRenderer::simulate(), SkyDome::simulate(), and TargetLife::updateAABB().

void FixedVector::asVector ( Vector dest  )  [inline]

Definition at line 180 of file FixedVector.h.

References fixed::asFloat(), and V.

static FixedVector& FixedVector::fromVector ( Vector vec  )  [inline, static]

Definition at line 187 of file FixedVector.h.

References fixed::fromFloat().

Referenced by TargetDefinition::createTarget(), TankAISniperGuesser::guess(), TankAIAimGuesser::initialShot(), and TankAICurrentMove::makeMoveShot().

void FixedVector::operator *= ( const fixed  a  )  [inline]

Definition at line 196 of file FixedVector.h.

References V.

void FixedVector::operator/= ( const fixed  a  )  [inline]

Definition at line 203 of file FixedVector.h.

References V.

void FixedVector::operator+= ( const fixed  a  )  [inline]

Definition at line 211 of file FixedVector.h.

References V.

void FixedVector::operator+= ( const FixedVector Vin  )  [inline]

Definition at line 218 of file FixedVector.h.

References V.

void FixedVector::operator-= ( const fixed  a  )  [inline]

Definition at line 225 of file FixedVector.h.

void FixedVector::operator-= ( const FixedVector Vin  )  [inline]

Definition at line 230 of file FixedVector.h.

References V.

bool FixedVector::operator== ( const FixedVector Vin  )  [inline]

Definition at line 237 of file FixedVector.h.

References V.

bool FixedVector::operator!= ( const FixedVector Vin1  )  [inline]

Definition at line 245 of file FixedVector.h.

fixed& FixedVector::operator[] ( const int  m  )  [inline]

Definition at line 250 of file FixedVector.h.

References DIALOG_ASSERT, and V.

fixed const& FixedVector::operator[] ( const int  m  )  const [inline]

Definition at line 251 of file FixedVector.h.

References DIALOG_ASSERT, and V.

FixedVector::operator fixed * (  )  [inline]

Definition at line 253 of file FixedVector.h.

References V.

FixedVector & FixedVector::getNullVector (  )  [static]

Definition at line 25 of file FixedVector.cpp.

References zero().

Referenced by TargetDefinition::createTarget(), TargetMovementEntrySpline::generate(), TargetMovementEntryShips::generate(), TankMovement::moveTank(), OptionsTransient::newGameWind(), TankFired::simulate(), and AddTarget::simulate().


Member Data Documentation

fixed FixedVector::V[3] [protected]

Definition at line 257 of file FixedVector.h.

Referenced by asVector(), dotP(), FixedVector(), get2DPerp(), Magnitude(), Max(), operator *(), operator *=(), operator fixed *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), operator[](), StoreInvert(), and zero().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3