This is the documentation for Enlighten.

class Enlighten BoundingBox2D

class Enlighten::BoundingBox2D

Bounding box in 2D.

Functions

Name Description
BoundingBox2D()

Default constructor initialising the bounding box as empty.

ContainsPoint(const Vertex2D &)

Tests if the bounding box contains a given point which includes the walls of the bounding box.

EnclosePoint(const Vertex2D &)

Expands the bounding box to include a given point.

operator+=(const Vertex2D &)

Expands the bounding box to include a given point via an operator syntax.

SetEmpty()

Sets the bounding box to be empty.


Enlighten::BoundingBox2D::BoundingBox2D


public: BoundingBox2D()


Default constructor initialising the bounding box as empty.


bool Enlighten::BoundingBox2D::ContainsPoint


public: bool ContainsPoint
(
    const Vertex2D & p
) const


Tests if the bounding box contains a given point which includes the walls of the bounding box.


void Enlighten::BoundingBox2D::EnclosePoint


public: void EnclosePoint
(
    const Vertex2D & point
)


Expands the bounding box to include a given point.


BoundingBox2D& Enlighten::BoundingBox2D::operator+=


public: BoundingBox2D & operator+=
(
    const Vertex2D & rhs
)


Expands the bounding box to include a given point via an operator syntax.


void Enlighten::BoundingBox2D::SetEmpty


public: void SetEmpty()


Sets the bounding box to be empty.