Template Class ConvexPolygonBounds< PolygonDynamic >¶
Defined in File ConvexPolygonBounds.hpp
Inheritance Relationships¶
Base Type¶
public Acts::ConvexPolygonBoundsBase
(Class ConvexPolygonBoundsBase)
Class Documentation¶
-
template<>
classActs
::
ConvexPolygonBounds
<PolygonDynamic> : public Acts::ConvexPolygonBoundsBase¶ This is the specialization handling a polygon with a dynamic number of points.
It can accept any number of points.
Public Functions
-
ConvexPolygonBounds
() = delete¶ Default constructor, deleted.
-
ConvexPolygonBounds
(const std::vector<Vector2> &vertices)¶ Constructor from a vector of vertices, to facilitate construction.
This will throw if the vertices do not form a convex polygon.
- Parameters
vertices
: The list of vertices.
-
~ConvexPolygonBounds
() override = default¶ Defaulted destructor.
-
const RectangleBounds &
boundingBox
() const final¶ Return a rectangle bounds object that encloses this polygon.
- Return
The rectangular bounds
-
bool
inside
(const Vector2 &lposition, const BoundaryCheck &bcheck) const final¶ Return whether a local 2D point lies inside of the bounds defined by this object.
- Return
Whether the points is inside
- Parameters
lposition
: The local position to checkbcheck
: TheBoundaryCheck
object handling tolerances.
-
BoundsType
type
() const final¶ Return the bounds type of this bounds object.
- Return
The bounds type
-