Bounding box in 2D.
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. |
public: BoundingBox2D()
Default constructor initialising the bounding box as empty.
public: bool ContainsPoint
(
const Vertex2D & p
) const
Tests if the bounding box contains a given point which includes the walls of the bounding box.
public: void EnclosePoint
(
const Vertex2D & point
)
Expands the bounding box to include a given point.
public: BoundingBox2D & operator+=
(
const Vertex2D & rhs
)
Expands the bounding box to include a given point via an operator syntax.
public: void SetEmpty()
Sets the bounding box to be empty.