TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
BBox Class Reference

#include <BBox.h>

Collaboration diagram for BBox:

Public Member Functions

 BBox ()
 BBox (const Point &min, const Point &max)
const Point & getCenter () const
const Vector & getExtent () const
void setCenter (const Point &p)
void setExtent (const Vector &v)
void setValue (const Point &min, const Point &max)
void enclose (const BBox &a, const BBox &b)
void setEmpty ()
void include (const Point &p)
void include (const BBox &b)
Scalar getLower (int i) const
Scalar getUpper (int i) const
Scalar size () const
int longestAxis () const

Private Attributes

Point center
Vector extent

Friends

bool intersect (const BBox &a, const BBox &b)

Detailed Description

Definition at line 36 of file BBox.h.

Constructor & Destructor Documentation

◆ BBox() [1/2]

BBox::BBox ( )
inline

Definition at line 38 of file BBox.h.

◆ BBox() [2/2]

BBox::BBox ( const Point & min,
const Point & max )
inline

Definition at line 39 of file BBox.h.

Here is the call graph for this function:

Member Function Documentation

◆ enclose()

void BBox::enclose ( const BBox & a,
const BBox & b )
inline

Definition at line 52 of file BBox.h.

Here is the call graph for this function:

◆ getCenter()

const Point & BBox::getCenter ( ) const
inline

Definition at line 41 of file BBox.h.

◆ getExtent()

const Vector & BBox::getExtent ( ) const
inline

Definition at line 42 of file BBox.h.

◆ getLower()

Scalar BBox::getLower ( int i) const
inline

Definition at line 79 of file BBox.h.

◆ getUpper()

Scalar BBox::getUpper ( int i) const
inline

Definition at line 80 of file BBox.h.

◆ include() [1/2]

void BBox::include ( const BBox & b)
inline

Definition at line 77 of file BBox.h.

Here is the call graph for this function:

◆ include() [2/2]

void BBox::include ( const Point & p)
inline

Definition at line 67 of file BBox.h.

Here is the call graph for this function:

◆ longestAxis()

int BBox::longestAxis ( ) const
inline

Definition at line 83 of file BBox.h.

◆ setCenter()

void BBox::setCenter ( const Point & p)
inline

Definition at line 44 of file BBox.h.

◆ setEmpty()

void BBox::setEmpty ( )
inline

Definition at line 62 of file BBox.h.

◆ setExtent()

void BBox::setExtent ( const Vector & v)
inline

Definition at line 45 of file BBox.h.

◆ setValue()

void BBox::setValue ( const Point & min,
const Point & max )
inline

Definition at line 47 of file BBox.h.

Here is the call graph for this function:

◆ size()

Scalar BBox::size ( ) const
inline

Definition at line 82 of file BBox.h.

Here is the call graph for this function:

◆ intersect

bool intersect ( const BBox & a,
const BBox & b )
friend

Definition at line 92 of file BBox.h.

Member Data Documentation

◆ center

Point BBox::center
private

Definition at line 88 of file BBox.h.

◆ extent

Vector BBox::extent
private

Definition at line 89 of file BBox.h.


The documentation for this class was generated from the following file:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/simu/simuv2/SOLID-2.0/src/BBox.h