Oolite 1.91.0.7644-241112-7f5034b
|
#include "OOMaths.h"
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().
HPVector OOHPVectorRandomRadial | ( | OOHPScalar | maxLength | ) |
Definition at line 98 of file OOHPVector.m.
References OORandomUnitHPVector(), and randf().
Referenced by VectorStaticRandomDirectionAndLength().
HPVector OOHPVectorRandomSpatial | ( | OOHPScalar | maxLength | ) |
Definition at line 82 of file OOHPVector.m.
References randf().
Referenced by OORandomPositionInCylinder(), OORandomPositionInShell(), and VectorStaticRandom().
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().
HPVector OORandomPositionInShell | ( | HPVector | centre, |
OOHPScalar | inner, | ||
OOHPScalar | outer ) |
Definition at line 130 of file OOHPVector.m.
References OOHPVectorRandomSpatial().
HPVector OORandomUnitHPVector | ( | void | ) |
Definition at line 66 of file OOHPVector.m.
References randf().
Referenced by OOHPVectorRandomRadial(), and VectorStaticRandomDirection().
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.