|
Oolite
|
#include "OOMaths.h"
Include dependency graph for OOHPVector.m:Go to the source code of this file.
Functions | |
| HPVector | OORandomUnitHPVector (void) |
| HPVector | OOHPVectorRandomSpatial (OOHPScalar maxLength) |
| HPVector | OOHPVectorRandomRadial (OOHPScalar maxLength) |
| HPVector | OOHPRandomPositionInBoundingBox (BoundingBox bb) |
| HPVector | OORandomPositionInCylinder (HPVector centre1, OOHPScalar exclusion1, HPVector centre2, OOHPScalar exclusion2, OOHPScalar radius) |
| HPVector | OORandomPositionInShell (HPVector centre, OOHPScalar inner, OOHPScalar outer) |
| HPVector | OOProjectHPVectorToPlane (HPVector point, HPVector plane, HPVector normal) |
Variables | |
| const HPVector | kZeroHPVector = { 0.0, 0.0, 0.0 } |
| const HPVector | kBasisXHPVector = { 1.0, 0.0, 0.0 } |
| const HPVector | kBasisYHPVector = { 0.0, 1.0, 0.0 } |
| const HPVector | kBasisZHPVector = { 0.0, 0.0, 1.0 } |
| const HPVector2D | kZeroHPVector2D = { 0.0, 0.0 } |
| const HPVector2D | kBasisXHPVector2D = { 1.0, 0.0 } |
| const HPVector2D | kBasisYHPVector2D = { 0.0, 1.0 } |
| HPVector OOHPRandomPositionInBoundingBox | ( | BoundingBox | bb | ) |
Definition at line 104 of file OOHPVector.m.
References randf().
Here is the call graph for this function:| HPVector OOHPVectorRandomRadial | ( | OOHPScalar | maxLength | ) |
Definition at line 98 of file OOHPVector.m.
References OORandomUnitHPVector(), and randf().
Referenced by VectorStaticRandomDirectionAndLength().
Here is the call graph for this function:
Here is the caller graph for this function:| HPVector OOHPVectorRandomSpatial | ( | OOHPScalar | maxLength | ) |
Definition at line 82 of file OOHPVector.m.
References randf().
Referenced by OORandomPositionInCylinder(), OORandomPositionInShell(), and VectorStaticRandom().
Here is the call graph for this function:
Here is the caller graph for this function:| HPVector OOProjectHPVectorToPlane | ( | HPVector | point, |
| HPVector | plane, | ||
| HPVector | normal | ||
| ) |
Definition at line 141 of file OOHPVector.m.
| HPVector OORandomPositionInCylinder | ( | HPVector | centre1, |
| OOHPScalar | exclusion1, | ||
| HPVector | centre2, | ||
| OOHPScalar | exclusion2, | ||
| OOHPScalar | radius | ||
| ) |
Definition at line 113 of file OOHPVector.m.
References OOHPVectorRandomSpatial(), OOLog, and randf().
Here is the call graph for this function:| HPVector OORandomPositionInShell | ( | HPVector | centre, |
| OOHPScalar | inner, | ||
| OOHPScalar | outer | ||
| ) |
Definition at line 130 of file OOHPVector.m.
References OOHPVectorRandomSpatial().
Here is the call graph for this function:| HPVector OORandomUnitHPVector | ( | void | ) |
Definition at line 66 of file OOHPVector.m.
References randf().
Referenced by OOHPVectorRandomRadial(), and VectorStaticRandomDirection().
Here is the call graph for this function:
Here is the caller graph for this function:| const HPVector kBasisXHPVector = { 1.0, 0.0, 0.0 } |
Definition at line 29 of file OOHPVector.m.
| const HPVector2D kBasisXHPVector2D = { 1.0, 0.0 } |
Definition at line 34 of file OOHPVector.m.
| const HPVector kBasisYHPVector = { 0.0, 1.0, 0.0 } |
Definition at line 30 of file OOHPVector.m.
| const HPVector2D kBasisYHPVector2D = { 0.0, 1.0 } |
Definition at line 35 of file OOHPVector.m.
| const HPVector kBasisZHPVector = { 0.0, 0.0, 1.0 } |
Definition at line 31 of file OOHPVector.m.
Referenced by quaternion_rotation_betweenHP().
| const HPVector kZeroHPVector = { 0.0, 0.0, 0.0 } |
Definition at line 28 of file OOHPVector.m.
Referenced by JSObjectGetVector(), JSValueToVector(), SystemLocationFromCode(), and VectorConstruct().
| const HPVector2D kZeroHPVector2D = { 0.0, 0.0 } |
Definition at line 33 of file OOHPVector.m.