|
Oolite
|
Go to the source code of this file.
Classes | |
| struct | HPVector |
| struct | HPVector2D |
Macros | |
| #define | HPvector_between(a, b) |
| #define | GLVertexOOHPVector(v) |
| #define | GLTranslateOOHPVector(v) |
Typedefs | |
| typedef struct HPVector | HPVector |
| typedef struct HPVector2D | HPVector2D |
Variables | |
| const HPVector | kZeroHPVector |
| const HPVector | kBasisXHPVector |
| const HPVector | kBasisYHPVector |
| const HPVector | kBasisZHPVector |
| const HPVector2D | kZeroHPVector2D |
| const HPVector2D | kBasisXHPVector2D |
| const HPVector2D | kBasisYHPVector2D |
| #define GLTranslateOOHPVector | ( | v | ) |
Definition at line 141 of file OOHPVector.h.
| #define GLVertexOOHPVector | ( | v | ) |
| #define HPvector_between | ( | a, | |
| b ) |
Definition at line 83 of file OOHPVector.h.
Referenced by Universe::addEntity:, ShipEntity::behaviour_fly_thru_navpoints:, ShipEntity::behaviour_tractored:, ShipEntity::canScoop:, ShipEntity::checkCloseCollisionWith:, ShipEntity::checkShipsInVicinityForWitchJumpExit, ShipEntity::doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:withPosition:i:j:k:, ShipEntity::doOctreesCollide, ShipEntity(PureAI)::setCourseToPlanet, ShipEntity::setProximityAlert:, and ShipEntity::update:.
| typedef struct HPVector HPVector |
| typedef struct HPVector2D HPVector2D |
Definition at line 312 of file OOHPVector.h.
References HPtrue_cross_product(), HPvector_normal(), and OOINLINE.
Referenced by DockEntity(OOPrivate)::addShipToShipsOnApproach:, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, DockEntity::dockingInstructionsForShip:, Universe::getSunSkimEndPositionForShip:, HPnormal_to_surface(), Universe::legacyPositionFrom:asCoordinateSystem:, and Universe::locationByCode:withSun:andPlanet:.
| OOINLINE OOHPScalar HPdistance | ( | HPVector | v1, |
| HPVector | v2 ) |
Definition at line 298 of file OOHPVector.h.
References HPmagnitude(), HPvector_subtract(), and OOINLINE.
Referenced by Universe::addShipAt:withRole:withinRadius:, ShipEntity::behaviour_land_on_planet:, ShipEntity(PureAI)::checkCourseToDestination, ShipEntity::currentAimTolerance, OOSunEntity::drawDirectVisionSunGlare, StationEntity::dumpSelfState, HeadUpDisplay::hudDrawWaypoint, Universe::legacyPositionFrom:asCoordinateSystem:, Universe::locationByCode:withSun:andPlanet:, OORandomPositionInCylinder(), ShipEntity::rangeToDestination, WormholeEntity::suckInShip:, VectorDistanceTo(), and VectorDistanceTo().
| OOINLINE OOHPScalar HPdistance2 | ( | HPVector | v1, |
| HPVector | v2 ) |
Definition at line 293 of file OOHPVector.h.
References HPmagnitude2(), HPvector_subtract(), and OOINLINE.
Referenced by Universe::addShips:withRole:atPosition:withCoordinateSystem:, DockEntity(OOPrivate)::addShipToShipsOnApproach:, ShipEntity::AuthorityPredicate, ShipEntity::becomeExplosion, ShipEntity::broadcastMessage:withUnpilotedOverride:, ShipEntity::checkCloseCollisionWith:, ShipEntity(PureAI)::checkForMotherStation, ShipEntity::checkScanner, ShipEntity::checkScannerIgnoringUnpowered, DockEntity::clearDockingCorridor, CompareEntitiesByDistance(), Universe::countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, PlayerEntity::doBookkeeping:, DockEntity::dockingCorridorIsEmpty, OOSunEntity::drawDirectVisionSunGlare, ShipEntity(AI)::enterTargetWormhole, Universe::EntityInRange, CollisionRegion::findCollisions, ShipEntity(PureAI)::getWitchspaceEntryCoordinates, WormholeEntity::initWormholeTo:fromShip:, Universe::loadStationMarkets:, Universe::locationByCode:withSun:andPlanet:, Universe::nearestEntityMatchingPredicate:parameter:relativeToEntity:, OORandomPositionInCylinder(), OORandomPositionInShell(), ShipEntity::realAlertCondition, ShipEntity(PureAI)::recallStoredTarget, ShipEntity(AI)::requestDockingCoordinates, ShipEntity::sendExpandedMessage:toShip:, ShipEntity::sendMessage:toShip:withUnpilotedOverride:, ShipEntity::setProximityAlert:, ShipEntity::setTargetToNearestStationIncludingHostiles:, ShipEntity(PureAI)::setTargetToRandomStation, CollisionRegion::shadowAtPointOcclusionToValue, ShipFindNearestStation(), ShipFindNearestStation(), Universe::stationWithRole:andPosition:, ShipEntity(PureAI)::thargonCheckMother, Entity::update:, ShipEntity::update:, VectorSquaredDistanceTo(), and VectorSquaredDistanceTo().
| OOINLINE OOHPScalar HPdot_product | ( | HPVector | first, |
| HPVector | second ) |
Definition at line 317 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by ShipEntity::behaviour_fly_thru_navpoints:, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, HPtriple_product(), Universe::isVectorClearFromEntity:toDistance:fromPoint:, OOProjectHPVectorToPlane(), VectorAngleTo(), VectorAngleTo(), VectorDot(), and VectorDot().
| OOINLINE OOHPScalar HPmagnitude | ( | HPVector | vec | ) |
Definition at line 260 of file OOHPVector.h.
References HPmagnitude2(), and OOINLINE.
Referenced by OOVisualEffectEntity(Private)::addSubEntity:, ShipEntity(Private)::addSubentityToCollisionRadius:, ShipEntity::behaviour_fly_thru_navpoints:, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, DockEntity::dockingInstructionsForShip:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, HPdistance(), Universe::locationByCode:withSun:andPlanet:, OOExhaustPlumeEntity::update:, OOSunEntity::updateCameraRelativePosition, VectorMagnitude(), and VectorMagnitude().
| OOINLINE OOHPScalar HPmagnitude2 | ( | HPVector | vec | ) |
Definition at line 255 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, Universe::addEntity:, ShipEntity::behaviour_fly_thru_navpoints:, ShipEntity::behaviour_tractored:, ShipEntity::canStillTrackPrimaryTarget, ShipEntity::checkForAegis, ShipEntity::checkShipsInVicinityForWitchJumpExit, DockEntity::dockingInstructionsForShip:, ShipEntity::fireMissileWithIdentifier:andTarget:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, HPdistance2(), HPmagnitude(), HPvector_normal_or_fallback(), PlayerEntity::leaveWitchspace, Universe::locationByCode:withSun:andPlanet:, OOHPVectorRandomSpatial(), OORandomUnitHPVector(), Universe::populateNormalSpace, DockEntity::pruneAndCountShipsOnApproach, ShipEntity(PureAI)::setPlanetPatrolCoordinates, Universe::setUpSpace, ShipEntity::SurfaceDistanceSqaredV, ShipEntity::trackPrimaryTarget:retreat:, Entity::update:, OOSunEntity::updateCameraRelativePosition, VectorSquaredMagnitude(), and VectorSquaredMagnitude().
Definition at line 327 of file OOHPVector.h.
References HPcross_product(), HPvector_subtract(), and OOINLINE.
| OOINLINE void HPscale_vector | ( | HPVector * | outHPVector, |
| OOHPScalar | factor ) |
Definition at line 184 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
| OOINLINE OOHPScalar HPtriple_product | ( | HPVector | first, |
| HPVector | second, | ||
| HPVector | third ) |
Definition at line 322 of file OOHPVector.h.
References HPdot_product(), HPtrue_cross_product(), and OOINLINE.
Referenced by VectorTripleProduct(), and VectorTripleProduct().
Definition at line 303 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by HPcross_product(), HPtriple_product(), VectorCross(), and VectorCross().
Definition at line 213 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by Entity::absolutePositionForSubentityOffset:, ShipEntity::absoluteTractorPosition, Universe::addShipAt:withRole:withinRadius:, Entity::applyVelocity:, StationEntity::beaconPosition, ShipEntity::becomeExplosion, PlayerEntity::breakPatternPosition, ShipEntity::calculateTargetPosition, ShipEntity::calculateTrackingCurve, ShipEntity::collideWithShip:, ShipEntity(Private)::coordinatesForEscortPosition:, WormholeEntity::disgorgeShips, OOParticleSystem::drawImmediate:translucent:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::dumpItem:, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, Universe::firstEntityTargetedByPlayer, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, ShipEntity(PureAI)::getWitchspaceEntryCoordinates, PlayerEntity::leaveWitchspace, Universe::locationByCode:withSun:andPlanet:, Entity::moveForward:, OORandomPositionInCylinder(), OORandomPositionInShell(), Universe::populateNormalSpace, OOExhaustPlumeEntity(Private)::saveToLastFrame, ShipEntity(PureAI)::setCourseToPlanet, ShipEntity(PureAI)::setDestinationToCurrentLocation, ShipEntity(PureAI)::setDestinationToJinkPosition, DockEntity::setDimensionsAndCorridor:ddc:launching:, ShipEntity(PureAI)::setTakeOffFromPlanet, Universe::spawnShipWithRole:near:, ShipEntity::throwSparks, OOExhaustPlumeEntity::update:, ShipEntity::update:, ShipEntity::updateTrackingCurve, VectorAdd(), and VectorAdd().
Definition at line 250 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by quaternion_rotation_betweenHP(), ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, ShipEntity(PureAI)::setSunSkimStartCoordinates, Universe::spawnShip:, Entity::update:, and PlayerEntity(OOPrivate)::updateMovementFlags.
Definition at line 245 of file OOHPVector.h.
References HPvector_subtract(), kZeroHPVector, and OOINLINE.
Referenced by Universe::spawnShip:.
| OOINLINE HPVector HPvector_multiply_scalar | ( | HPVector | v, |
| OOHPScalar | s ) |
Definition at line 198 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, Entity::applyVelocity:, ShipEntity::calculateTargetPosition, ShipEntity::calculateTrackingCurve, HPvector_normal_or_fallback(), PlayerEntity::leaveWitchspace, Universe::locationByCode:withSun:andPlanet:, Entity::moveForward:, OOHPVectorRandomRadial(), OOHPVectorRandomSpatial(), OOProjectHPVectorToPlane(), ShipEntity(PureAI)::setCourseToPlanet, DockEntity::setDimensionsAndCorridor:ddc:launching:, ShipEntity(PureAI)::setTakeOffFromPlanet, ShipEntity::setUpOneStandardSubentity:asTurret:, Universe::setUpSpace, DockEntity::shipIsInDockingCorridor:, OOSunEntity::updateCameraRelativePosition, VectorMultiply(), VectorMultiply(), VectorStaticRandomDirection(), and VectorStaticRandomDirection().
Definition at line 288 of file OOHPVector.h.
References HPvector_normal_or_fallback(), kZeroHPVector, and OOINLINE.
Referenced by Universe::addLaserHitEffectsAt:against:damage:color:, Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ShipEntity::behaviour_fly_thru_navpoints:, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, HPcross_product(), Universe::isVectorClearFromEntity:toDistance:fromPoint:, PlayerEntity::leaveWitchspace, OORandomUnitHPVector(), ShipEntity(PureAI)::setCourseToPlanet, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity(PureAI)::setSunSkimExitCoordinates, ShipEntity(PureAI)::setTakeOffFromPlanet, DockEntity::shipIsInDockingCorridor:, Universe::spawnShip:, VectorAngleTo(), VectorAngleTo(), VectorDirection(), and VectorDirection().
Definition at line 265 of file OOHPVector.h.
References EXPECT_NOT, HPmagnitude2(), HPvector_multiply_scalar(), and OOINLINE.
Referenced by HPvector_normal(), HPvector_normal_or_xbasis(), HPvector_normal_or_ybasis(), HPvector_normal_or_zbasis(), and ShipEntity(PureAI)::setDestinationToDockingAbort.
Definition at line 273 of file OOHPVector.h.
References HPvector_normal_or_fallback(), kBasisXHPVector, and OOINLINE.
Referenced by Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, and Universe::legacyPositionFrom:asCoordinateSystem:.
Definition at line 278 of file OOHPVector.h.
References HPvector_normal_or_fallback(), kBasisYHPVector, and OOINLINE.
Definition at line 283 of file OOHPVector.h.
References HPvector_normal_or_fallback(), kBasisZHPVector, and OOINLINE.
Referenced by ShipEntity::collideWithShip:, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, and Universe::legacyPositionFrom:asCoordinateSystem:.
Definition at line 236 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, Universe::addLaserHitEffectsAt:against:damage:color:, Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ShipEntity::approachAspectToPrimaryTarget, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::behaviour_track_as_turret:, ShipEntity::canStillTrackPrimaryTarget, ShipEntity::checkForAegis, ShipEntity::collideWithShip:, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, DockEntity::dockingInstructionsForShip:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, Universe::firstEntityTargetedByPlayer, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, HPdistance(), HPdistance2(), HPnormal_to_surface(), HPvector_flip(), HeadUpDisplay::hudDrawReticleOnTarget, HeadUpDisplay::hudDrawWaypoint, ShipEntity::launchCascadeMine, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, Universe::legacyPositionFrom:asCoordinateSystem:, Universe::locationByCode:withSun:andPlanet:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::onTarget:withWeapon:, OOMatrixForBillboard(), OOProjectHPVectorToPlane(), DockEntity::pruneAndCountShipsOnApproach, ShipEntity::rangeToSecondaryTarget:, Entity::relativePosition, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity(PureAI)::setSunSkimExitCoordinates, ShipEntity(PureAI)::setTakeOffFromPlanet, Universe::setUpSpace, CollisionRegion::shadowAtPointOcclusionToValue, DockEntity::shipIsInDockingCorridor:, Universe::spawnShip:, ShipEntity::SurfaceDistanceSqaredV, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, ShipEntity::throwSparks, ShipEntity::trackDestination:retreat:, ShipEntity::trackPrimaryTarget:retreat:, ShipEntity::trackSideTarget:leftside:, OOExhaustPlumeEntity::update:, Entity::updateCameraRelativePosition, OOSunEntity::updateCameraRelativePosition, VectorSubtract(), VectorSubtract(), and Entity::vectorTo:.
Definition at line 175 of file OOHPVector.h.
References OOINLINE, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by Universe::addLaserHitEffectsAt:against:damage:color:, ShipEntity::approachAspectToPrimaryTarget, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::canScoop:, ShipEntity::checkCloseCollisionWith:, ShipEntity::collideWithShip:, ShipEntity::doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:withPosition:i:j:k:, ShipEntity::doOctreesCollide, OOLightParticleEntity::drawSubEntityImmediate:translucent:, OOVisualEffectEntity(Private)::drawSubEntityImmediate:translucent:, ShipEntity::drawSubEntityImmediate:translucent:, PlayerEntity::drawTransformationMatrix, ShipEntity::fireSubentityLaserShot:, Universe::firstEntityTargetedByPlayer, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, HeadUpDisplay::hudDrawReticleOnTarget, HeadUpDisplay::hudDrawWaypoint, JSValueToVector(), JSValueToVector(), PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::onTarget:withWeapon:, OOMatrixForBillboard(), QuaternionRotate(), QuaternionRotate(), ShipEntity::rangeToSecondaryTarget:, Entity::relativePosition, OOJSPopulatorDefinition::runCallback:, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity::setProximityAlert:, CollisionRegion::shadowAtPointOcclusionToValue, Universe::spawnShip:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, ShipEntity::throwSparks, ShipEntity::trackDestination:retreat:, ShipEntity::trackPrimaryTarget:retreat:, ShipEntity::trackSideTarget:leftside:, Entity::update:, ShipEntity::update:, Entity::updateCameraRelativePosition, OOSunEntity::updateCameraRelativePosition, VectorRotationTo(), VectorRotationTo(), and Entity::vectorTo:.
| OOINLINE HPVector make_HPvector | ( | OOHPScalar | vx, |
| OOHPScalar | vy, | ||
| OOHPScalar | vz ) |
Definition at line 149 of file OOHPVector.h.
References OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addShips:withRole:intoBoundingBox:, PlayerEntity(Scripting)::addShipsAt:, PlayerEntity(Scripting)::addShipsAtPrecisely:, PlayerEntity(Scripting)::addShipsWithinRadius:, DockEntity(OOPrivate)::addShipToShipsOnApproach:, ShipEntity::behaviour_fly_thru_navpoints:, Universe::coordinatesFromCoordinateSystemString:, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getSunSkimEndPositionForShip:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, Universe::isVectorClearFromEntity:toDistance:fromPoint:, JSObjectGetVector(), JSObjectGetVector(), Universe::legacyPositionFrom:asCoordinateSystem:, OOHPVectorInterpolate(), OOHPVectorMultiplyMatrix(), OOHPVectorRandomSpatial(), OOHPVectorTowards(), OORandomUnitHPVector(), Universe::populateNormalSpace, ShipEntity(PureAI)::setCoordinates:, ShipEntity(PureAI)::setDestinationToDockingAbort, ShipEntity(PureAI)::setDestinationWithinTarget, ShipEntity(PureAI)::setPlanetPatrolCoordinates, ShipEntity(PureAI)::setRacepointsFromTarget, OOExhaustPlumeEntity::update:, VectorFromArgumentListNoErrorInternal(), and VectorFromArgumentListNoErrorInternal().
| OOINLINE HPVector2D MakeHPVector2D | ( | OOHPScalar | vx, |
| OOHPScalar | vy ) |
Definition at line 158 of file OOHPVector.h.
References OOINLINE, HPVector2D::x, and HPVector2D::y.
| OOINLINE HPVector OOHPVectorInterpolate | ( | HPVector | a, |
| HPVector | b, | ||
| OOHPScalar | where ) |
Definition at line 222 of file OOHPVector.h.
References make_HPvector(), OOINLINE, OOLerpd(), HPVector::x, HPVector::y, and HPVector::z.
Referenced by Universe::addShipWithRole:nearRouteOneAt:, ShipEntity::avoidCollision, Universe(OOPrivate)::fractionalPositionFrom:to:withFraction:, OORandomPositionInCylinder(), VectorStaticInterpolate(), and VectorStaticInterpolate().
| HPVector OOHPVectorRandomRadial | ( | OOHPScalar | maxLength | ) |
Definition at line 88 of file OOHPVector.m.
References HPvector_multiply_scalar(), OORandomUnitHPVector(), and randf().
Referenced by Universe::spawnShip:, VectorStaticRandomDirectionAndLength(), and VectorStaticRandomDirectionAndLength().
| HPVector OOHPVectorRandomSpatial | ( | OOHPScalar | maxLength | ) |
Definition at line 75 of file OOHPVector.m.
References HPmagnitude2(), HPvector_multiply_scalar(), make_HPvector(), and randf().
Referenced by Universe::addShipAt:withRole:withinRadius:, Universe::locationByCode:withSun:andPlanet:, OORandomPositionInCylinder(), OORandomPositionInShell(), ShipEntity(PureAI)::setDestinationToCurrentLocation, ShipEntity::updateTrackingCurve, VectorStaticRandom(), and VectorStaticRandom().
| OOINLINE HPVector OOHPVectorTowards | ( | HPVector | a, |
| HPVector | b, | ||
| OOHPScalar | where ) |
Definition at line 229 of file OOHPVector.h.
References make_HPvector(), OOINLINE, HPVector::x, HPVector::y, and HPVector::z.
Referenced by DockEntity::dockingInstructionsForShip:.
Definition at line 126 of file OOHPVector.m.
References HPdot_product(), HPvector_multiply_scalar(), and HPvector_subtract().
Referenced by Universe::locationByCode:withSun:andPlanet:.
| HPVector OORandomPositionInCylinder | ( | HPVector | centre1, |
| OOHPScalar | exclusion1, | ||
| HPVector | centre2, | ||
| OOHPScalar | exclusion2, | ||
| OOHPScalar | radius ) |
Definition at line 102 of file OOHPVector.m.
References HPdistance(), HPdistance2(), HPvector_add(), OOHPVectorInterpolate(), OOHPVectorRandomSpatial(), OOLog, and randf().
Referenced by Universe::locationByCode:withSun:andPlanet:.
| HPVector OORandomPositionInShell | ( | HPVector | centre, |
| OOHPScalar | inner, | ||
| OOHPScalar | outer ) |
Definition at line 116 of file OOHPVector.m.
References HPdistance2(), HPvector_add(), and OOHPVectorRandomSpatial().
Referenced by Universe::locationByCode:withSun:andPlanet:.
| HPVector OORandomUnitHPVector | ( | void | ) |
Definition at line 62 of file OOHPVector.m.
References HPmagnitude2(), HPvector_normal(), make_HPvector(), and randf().
Referenced by OOHPVectorRandomRadial(), VectorStaticRandomDirection(), and VectorStaticRandomDirection().
Definition at line 166 of file OOHPVector.h.
References OOINLINE, HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
Referenced by ShipEntity::absoluteTractorPosition, Entity::applyVelocity:, StationEntity::beaconPosition, ShipEntity::becomeExplosion, PlayerEntity::breakPatternPosition, ShipEntity::collideWithShip:, ShipEntity(Private)::coordinatesForEscortPosition:, WormholeEntity::disgorgeShips, OOParticleSystem::drawImmediate:translucent:, ShipEntity::dumpItem:, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, Universe::firstEntityTargetedByPlayer, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, ShipEntity(PureAI)::getWitchspaceEntryCoordinates, HPvector_forward_from_quaternion(), JSVectorSetVector(), JSVectorSetVector(), JSVectorWithVector(), JSVectorWithVector(), ShipEntity::launchCascadeMine, PlayerEntity::launchEscapeCapsule, PlayerEntity::leaveWitchspace, ScanHPVectorFromString(), ShipEntity(PureAI)::setDestinationToJinkPosition, Universe::setUpSpace, Universe::spawnShipWithRole:near:, ShipEntity::throwSparks, OOExhaustPlumeEntity::update:, ShipEntity::update:, and VectorToJSValue().
| const HPVector kBasisXHPVector |
Definition at line 49 of file OOHPVector.h.
Referenced by HPvector_normal_or_xbasis().
| const HPVector2D kBasisXHPVector2D |
Definition at line 54 of file OOHPVector.h.
| const HPVector kBasisYHPVector |
Definition at line 50 of file OOHPVector.h.
Referenced by HPvector_normal_or_ybasis().
| const HPVector2D kBasisYHPVector2D |
Definition at line 55 of file OOHPVector.h.
| const HPVector kBasisZHPVector |
Definition at line 51 of file OOHPVector.h.
Referenced by HPvector_normal_or_zbasis(), quaternion_rotation_betweenHP(), and Universe::spawnShip:.
|
extern |
Definition at line 27 of file OOHPVector.m.
Referenced by Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ShipEntity::calculateTargetPosition, ShipEntity::calculateTrackingCurve, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, Universe::countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, Universe::findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, Universe::getWitchspaceExitPosition, HPvector_flip(), HPvector_normal(), Entity::init, JSObjectGetVector(), JSObjectGetVector(), JSValueToVector(), JSValueToVector(), Universe::legacyPositionFrom:asCoordinateSystem:, Universe::locationByCode:withSun:andPlanet:, Universe::nearestEntityMatchingPredicate:parameter:relativeToEntity:, Universe::populateSystemFromDictionariesWithSun:andPlanet:, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, ShipEntity(PureAI)::setDestinationToDockingAbort, ShipEntity(PureAI)::setSunSkimStartCoordinates, Universe::spawnShip:, SystemLocationFromCode(), SystemLocationFromCode(), PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, VectorConstruct(), VectorConstruct(), and PlayerEntity::viewpointPosition.
|
extern |
Definition at line 32 of file OOHPVector.m.