#include <FixedVector.h>
Definition at line 28 of file FixedVector.h.
| FixedVector::FixedVector | ( | ) | [inline] |
| FixedVector::FixedVector | ( | const FixedVector & | v | ) | [inline] |
| 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] |
| fixed FixedVector::Max | ( | ) | [inline] |
Definition at line 86 of file FixedVector.h.
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] |
| FixedVector FixedVector::operator+ | ( | const FixedVector & | Vin | ) | [inline] |
| FixedVector FixedVector::operator- | ( | const fixed | m | ) | [inline] |
| FixedVector FixedVector::operator- | ( | const FixedVector & | Vin | ) | [inline] |
| void FixedVector::operator *= | ( | const FixedVector & | Vin | ) | [inline] |
| FixedVector FixedVector::operator * | ( | const FixedVector & | Vin | ) | [inline] |
| FixedVector FixedVector::operator * | ( | const fixed | a | ) | [inline] |
| FixedVector FixedVector::operator/ | ( | const fixed | a | ) | [inline] |
| FixedVector FixedVector::operator- | ( | ) | [inline] |
| 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] |
| 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] |
| void FixedVector::operator/= | ( | const fixed | a | ) | [inline] |
| void FixedVector::operator+= | ( | const fixed | a | ) | [inline] |
| void FixedVector::operator+= | ( | const FixedVector & | Vin | ) | [inline] |
| void FixedVector::operator-= | ( | const fixed | a | ) | [inline] |
Definition at line 225 of file FixedVector.h.
| void FixedVector::operator-= | ( | const FixedVector & | Vin | ) | [inline] |
| bool FixedVector::operator== | ( | const FixedVector & | Vin | ) | [inline] |
| bool FixedVector::operator!= | ( | const FixedVector & | Vin1 | ) | [inline] |
Definition at line 245 of file FixedVector.h.
| fixed& FixedVector::operator[] | ( | const int | m | ) | [inline] |
| fixed const& FixedVector::operator[] | ( | const int | m | ) | const [inline] |
| FixedVector::operator fixed * | ( | ) | [inline] |
| 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().
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().
1.5.3