|
Oolite
|
#include "OOMaths.h"
Include dependency graph for OOVector.m: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 121 of file OOVector.m.
References randf().
Here is the call graph for this function:| Vector OORandomUnitVector | ( | void | ) |
Definition at line 83 of file OOVector.m.
References randf().
Referenced by OOVectorRandomRadial().
Here is the call graph for this function:
Here is the caller graph for this function:| Vector OOVectorRandomRadial | ( | OOScalar | maxLength | ) |
Definition at line 115 of file OOVector.m.
References OORandomUnitVector(), and randf().
Here is the call graph for this function:| Vector OOVectorRandomSpatial | ( | OOScalar | maxLength | ) |
Definition at line 99 of file OOVector.m.
References randf().
Here is the call graph for this function:| const Vector kBasisXVector = { 1.0f, 0.0f, 0.0f } |
Definition at line 29 of file OOVector.m.
Referenced by OOMatrixForBillboard(), and Verify_Vector().
| const Vector2D kBasisXVector2D = { 1.0f, 0.0f } |
Definition at line 34 of file OOVector.m.
| const Vector kBasisYVector = { 0.0f, 1.0f, 0.0f } |
Definition at line 30 of file OOVector.m.
Referenced by HeadUpDisplay::hudRotateViewpointForVirtualDepth, and OOPlanetEntity::initFromDictionary:withAtmosphere:andSeed:forSystem:.
| const Vector2D kBasisYVector2D = { 0.0f, 1.0f } |
Definition at line 35 of file OOVector.m.
| const Vector kBasisZVector = { 0.0f, 0.0f, 1.0f } |
Definition at line 31 of file OOVector.m.
Referenced by OOMatrixForBillboard(), and quaternion_rotation_between().
| const BoundingBox kZeroBoundingBox = {{ 0.0f, 0.0f, 0.0f }, { 0.0f, 0.0f, 0.0f }} |
Definition at line 38 of file OOVector.m.
| const Vector kZeroVector = { 0.0f, 0.0f, 0.0f } |
Definition at line 28 of file OOVector.m.
Referenced by ShipEntity::abandonShip, HeadUpDisplay::hudRotateViewpointForVirtualDepth, OODebugDrawBasisAtOrigin(), OODebugDrawColoredVectorAtOrigin(), OODebugDrawNormalAtOrigin(), OODebugDrawVectorAtOrigin(), PlayerShipSetCustomView(), SystemSetPopulator(), and Verify_Vector().
| const Vector2D kZeroVector2D = { 0.0f, 0.0f } |
Definition at line 33 of file OOVector.m.