My Project: Box Class Reference

My Project

Public Member Functions | Public Attributes | List of all members
Box Class Reference

`#include <geom.h>`

## Public Member Functions

| Box ()
| Box (const Vector &q)
| Box (const Vector &a, const Vector &b)
| Box (const Line &l)
void | clear ()
bool | empty () const
Vector | centre () const
Vector | corner (int n) const
void | update (const Vector &q)
void | update (const Box &q)
bool | overlaps (const Box &q) const
void | expand (float n)
float | width () const
float | height () const
float | depth () const
bool | contains (const Vector &q)

## Public Attributes

Vector | a
Vector | b

## Constructor & Destructor Documentation

## § Box() [1/4]

Box::Box | ( |  | ) |

inline

## § Box() [2/4]

Box::Box | ( | const Vector & | q | ) |

inline

## § Box() [3/4]

Box::Box | ( | const Vector & | a,
|  | const Vector & | b
| ) |  |

inline

## § Box() [4/4]

Box::Box | ( | const Line & | l | ) |

inline

## Member Function Documentation

## § centre()

Vector Box::centre | ( |  | ) | const

inline

## § clear()

void Box::clear | ( |  | ) |

inline

## § contains()

bool Box::contains | ( | const Vector & | q | ) |

inline

## § corner()

Vector Box::corner | ( | int | n | ) | const

inline

## § depth()

float Box::depth | ( |  | ) | const

inline

## § empty()

bool Box::empty | ( |  | ) | const

inline

## § expand()

void Box::expand | ( | float | n | ) |

inline

## § height()

float Box::height | ( |  | ) | const

inline

## § overlaps()

bool Box::overlaps | ( | const Box & | q | ) | const

inline

## § update() [1/2]

void Box::update | ( | const Vector & | q | ) |

inline

## § update() [2/2]

void Box::update | ( | const Box & | q | ) |

inline

## § width()

float Box::width | ( |  | ) | const

inline

## Member Data Documentation

## § a

Vector Box::a

## § b

Vector Box::b

The documentation for this class was generated from the following file:

- openb3dlib.mod/openb3d/src/geom.h