Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::BoundingBox2D

Bounding box in 2D.

Functions

NameDescription
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.


Anchor
aa55461415c9ed953ab4b1e3e7f61bc5a
aa55461415c9ed953ab4b1e3e7f61bc5a

Enlighten::BoundingBox2D::BoundingBox2D

...

public: BoundingBox2D()

...

Default constructor initialising the bounding box as empty.


Anchor
a562d445d9aa40f22578143a626f556a1
a562d445d9aa40f22578143a626f556a1

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.


Anchor
a9e95b4c763db3530a5d2b25b4dfbdedd
a9e95b4c763db3530a5d2b25b4dfbdedd

void Enlighten::BoundingBox2D::EnclosePoint

...

public: void EnclosePoint
(
    const Vertex2D & point
)

...

Expands the bounding box to include a given point.


Anchor
aa1758f81f9fb5e7d82315bc02d905436
aa1758f81f9fb5e7d82315bc02d905436

BoundingBox2D& Enlighten::BoundingBox2D::operator+=

...

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

...

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


Anchor
a53e1c20d9b222fc3492851565da8030f
a53e1c20d9b222fc3492851565da8030f

void Enlighten::BoundingBox2D::SetEmpty

...

public: void SetEmpty()

...

Sets the bounding box to be empty.