|
Oolite
|
#include "OOHPVector.h"Go to the source code of this file.
Classes | |
| struct | BoundingBox |
Functions | |
| OOINLINE void | bounding_box_add_vector (BoundingBox *box, Vector vec) ALWAYS_INLINE_FUNC NONNULL_FUNC |
| OOINLINE void | bounding_box_add_xyz (BoundingBox *box, GLfloat x, GLfloat y, GLfloat z) ALWAYS_INLINE_FUNC NONNULL_FUNC |
| OOINLINE void | bounding_box_reset (BoundingBox *box) NONNULL_FUNC |
| OOINLINE void | bounding_box_reset_to_vector (BoundingBox *box, Vector vec) ALWAYS_INLINE_FUNC NONNULL_FUNC |
| OOINLINE void | bounding_box_get_dimensions (BoundingBox bb, GLfloat *xSize, GLfloat *ySize, GLfloat *zSize) ALWAYS_INLINE_FUNC |
| OOINLINE Vector | OOBoundingBoxCenter (BoundingBox bb) INLINE_CONST_FUNC |
| Vector | OORandomPositionInBoundingBox (BoundingBox bb) |
| HPVector | OOHPRandomPositionInBoundingBox (BoundingBox bb) |
Variables | |
| const BoundingBox | kZeroBoundingBox |
| OOINLINE void bounding_box_add_vector | ( | BoundingBox * | box, |
| Vector | vec ) |
Definition at line 58 of file OOBoundingBox.h.
References BoundingBox::max, BoundingBox::min, OOINLINE, Vector::x, Vector::y, and Vector::z.
Referenced by OOMesh(Private)::calculateBoundingVolumes, PlayerEntity::doBookkeeping:, OOMesh::findBoundingBoxRelativeToPosition:ri:rj:rk:selfPosition:si:sj:sk:, OOMesh::findSubentityBoundingBoxWithPosition:rotMatrix:, ShipEntity::setUpOneStandardSubentity:asTurret:, and ShipEntity::update:.
| OOINLINE void bounding_box_add_xyz | ( | BoundingBox * | box, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z ) |
Definition at line 69 of file OOBoundingBox.h.
References BoundingBox::max, BoundingBox::min, OOINLINE, Vector::x, x, Vector::y, y, and Vector::z.
Referenced by Universe::addShips:withRole:nearPosition:withCoordinateSystem:, and Universe::addShips:withRole:nearPosition:withCoordinateSystem:withinRadius:.
| OOINLINE void bounding_box_get_dimensions | ( | BoundingBox | bb, |
| GLfloat * | xSize, | ||
| GLfloat * | ySize, | ||
| GLfloat * | zSize ) |
Definition at line 93 of file OOBoundingBox.h.
References BoundingBox::max, BoundingBox::min, OOINLINE, Vector::x, Vector::y, and Vector::z.
Referenced by OOMesh::octreeDepth, CollisionRegion::shadowAtPointOcclusionToValue, ShipGetProperty(), and ShipGetProperty().
| OOINLINE void bounding_box_reset | ( | BoundingBox * | box | ) |
Definition at line 80 of file OOBoundingBox.h.
References kZeroBoundingBox, and OOINLINE.
Referenced by OOMesh(Private)::calculateBoundingVolumes.
| OOINLINE void bounding_box_reset_to_vector | ( | BoundingBox * | box, |
| Vector | vec ) |
Definition at line 86 of file OOBoundingBox.h.
References BoundingBox::max, BoundingBox::min, and OOINLINE.
Referenced by Universe::addShips:withRole:nearPosition:withCoordinateSystem:, Universe::addShips:withRole:nearPosition:withCoordinateSystem:withinRadius:, OOMesh(Private)::calculateBoundingVolumes, OOMesh::findBoundingBoxRelativeToPosition:ri:rj:rk:selfPosition:si:sj:sk:, and OOMesh::findSubentityBoundingBoxWithPosition:rotMatrix:.
| OOINLINE Vector OOBoundingBoxCenter | ( | BoundingBox | bb | ) |
Definition at line 103 of file OOBoundingBox.h.
References BoundingBox::max, BoundingBox::min, OOINLINE, vector_add(), and vector_multiply_scalar().
Referenced by OOLaserShotEntity::initLaserFromShip:direction:offset:.
| HPVector OOHPRandomPositionInBoundingBox | ( | BoundingBox | bb | ) |
Definition at line 93 of file OOHPVector.m.
References BoundingBox::max, BoundingBox::min, randf(), HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
| Vector OORandomPositionInBoundingBox | ( | BoundingBox | bb | ) |
Definition at line 107 of file OOVector.m.
References BoundingBox::max, BoundingBox::min, randf(), Vector::x, Vector::y, and Vector::z.
Referenced by ShipEntity::becomeExplosion, and ShipEntity::releaseCargoPodsDebris.
|
extern |
Definition at line 36 of file OOVector.m.
Referenced by bounding_box_reset(), OODrawable::boundingBox, and OOMesh::init.