|
Oolite
|
#include "OOMaths.h"Go to the source code of this file.
Functions | |
| Vector | OORandomUnitVector (void) |
| Vector | OOVectorRandomSpatial (OOScalar maxLength) |
| Vector | OOVectorRandomRadial (OOScalar maxLength) |
| Vector | OORandomPositionInBoundingBox (BoundingBox bb) |
Variables | |
| const Vector | kZeroVector = { 0.0f, 0.0f, 0.0f } |
| const Vector | kBasisXVector = { 1.0f, 0.0f, 0.0f } |
| const Vector | kBasisYVector = { 0.0f, 1.0f, 0.0f } |
| const Vector | kBasisZVector = { 0.0f, 0.0f, 1.0f } |
| const Vector2D | kZeroVector2D = { 0.0f, 0.0f } |
| const Vector2D | kBasisXVector2D = { 1.0f, 0.0f } |
| const Vector2D | kBasisYVector2D = { 0.0f, 1.0f } |
| const BoundingBox | kZeroBoundingBox = { { 0.0f, 0.0f, 0.0f }, { 0.0f, 0.0f, 0.0f } } |
| Vector OORandomPositionInBoundingBox | ( | BoundingBox | bb | ) |
Definition at line 107 of file OOVector.m.
References BoundingBox::max, BoundingBox::min, randf(), Vector::x, Vector::y, and Vector::z.
Referenced by ShipEntity::becomeExplosion, and ShipEntity::releaseCargoPodsDebris.
| Vector OORandomUnitVector | ( | void | ) |
Definition at line 76 of file OOVector.m.
References magnitude2(), make_vector(), randf(), and vector_normal().
Referenced by OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, and OOVectorRandomRadial().
Definition at line 102 of file OOVector.m.
References OORandomUnitVector(), randf(), and vector_multiply_scalar().
Referenced by HeadUpDisplay(Private)::drawScanner:.
Definition at line 89 of file OOVector.m.
References magnitude2(), make_vector(), randf(), and vector_multiply_scalar().
Referenced by ShipEntity(PureAI)::setDestinationToJinkPosition.
| const Vector kBasisXVector = { 1.0f, 0.0f, 0.0f } |
Definition at line 28 of file OOVector.m.
| const Vector2D kBasisXVector2D = { 1.0f, 0.0f } |
Definition at line 33 of file OOVector.m.
| const Vector kBasisYVector = { 0.0f, 1.0f, 0.0f } |
Definition at line 29 of file OOVector.m.
| const Vector2D kBasisYVector2D = { 0.0f, 1.0f } |
Definition at line 34 of file OOVector.m.
| const Vector kBasisZVector = { 0.0f, 0.0f, 1.0f } |
Definition at line 30 of file OOVector.m.
| const BoundingBox kZeroBoundingBox = { { 0.0f, 0.0f, 0.0f }, { 0.0f, 0.0f, 0.0f } } |
Definition at line 36 of file OOVector.m.
Referenced by bounding_box_reset(), OODrawable::boundingBox, and OOMesh::init.
| const Vector kZeroVector = { 0.0f, 0.0f, 0.0f } |
Definition at line 27 of file OOVector.m.
Referenced by ShipEntity::behaviour_attack_broadside:, ShipEntity::behaviour_attack_fly_from_target:, ShipEntity::behaviour_attack_target:, ShipEntity::behaviour_running_defense:, OOMesh(Private)::calculateVertexNormalsAndTangentsWithFaceRefs:, OOMesh(Private)::calculateVertexTangentsWithFaceRefs:, OOMesh(Private)::checkNormalsAndAdjustWinding, ShipEntity::collideWithShip:, HeadUpDisplay(Private)::drawDirectionCue:, OOECMBlastEntity::drawImmediate:translucent:, Universe::drawUniverse, PlayerEntity::engageAutopilotToStation:, ShipEntity::fireMissileWithIdentifier:andTarget:, Universe::firstEntityTargetedByPlayerPrecisely, PlayerEntity::getDestroyedBy:damageType:, OOMesh(Private)::getNormal:andTangent:forVertex:inSmoothGroup:, ShipEntity::getWeaponOffsetFrom:withKey:inMode:, HeadUpDisplay::hudRotateViewpointForVirtualDepth, OOMesh::init, OOSoundSource::init, Octree::isHitByLine:v1:, PlayerEntity::leaveDock:, PlayerEntity::leaveWitchspace, ShipEntity::missileTrackPrimaryTarget:, OOMatrixFromBasisVectors(), PlayerEntity(OOPrivate)::performInFlightUpdates:, PlayerShipSetCustomView(), PlayerShipSetCustomView(), StationEntity::portUpVectorForShip:, ShipEntity::positionOffsetForAlignment:, ShipEntity::positionOffsetForShipInRotationToAlignment, Octree::randomPoint, ShipEntity(Private)::refreshEscortPositions, OOExhaustPlumeEntity::resetPlume, PlayerEntity::setCustomViewDataFromDictionary:withScaling:, PlayerEntity::setDefaultViewOffsets, ShipEntity::setEvasiveJink:, PlayerEntity::setUpAndConfirmOK:saveGame:, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, SystemSetPopulator(), SystemSetPopulator(), ShipEntity::trackDestination:retreat:, ShipEntity::trackPrimaryTarget:retreat:, ShipEntity::trackSideTarget:leftside:, ShipEntity::update:, OOShipRegistry(OODataLoader)::validateNewStyleFlasherDeclaration:forShip:fatalError:, OOShipRegistry(OODataLoader)::validateNewStyleStandardSubentityDeclaration:forShip:fatalError:, vector_flip(), vector_normal(), Verify_Vector(), PlayerEntity::viewpointOffset, PlayerEntity::weaponViewOffset, and ShipEntity::witchspaceLeavingEffects.
| const Vector2D kZeroVector2D = { 0.0f, 0.0f } |
Definition at line 32 of file OOVector.m.