Oolite 1.91.0.7646-241128-10e222e
|
#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 121 of file OOVector.m.
References randf().
Vector OORandomUnitVector | ( | void | ) |
Definition at line 83 of file OOVector.m.
References randf().
Referenced by OOVectorRandomRadial().
Vector OOVectorRandomRadial | ( | OOScalar | maxLength | ) |
Definition at line 115 of file OOVector.m.
References OORandomUnitVector(), and randf().
Vector OOVectorRandomSpatial | ( | OOScalar | maxLength | ) |
Definition at line 99 of file OOVector.m.
References randf().
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.
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.