ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Surfaces/ConvexPolygonBounds.hpp>
Public Member Functions | |
ConvexPolygonBounds ()=delete | |
Default constructor, deleted. | |
~ConvexPolygonBounds () override=default | |
Defaulted destructor. | |
ConvexPolygonBounds (const std::vector< Vector2D > &vertices) | |
BoundsType | type () const final |
bool | inside (const Vector2D &lposition, const BoundaryCheck &bcheck) const final |
double | distanceToBoundary (const Vector2D &lposition) const final |
std::vector< Vector2D > | vertices (unsigned int lseg=1) const final |
const RectangleBounds & | boundingBox () const final |
Public Member Functions inherited from Acts::ConvexPolygonBoundsBase | |
std::ostream & | toStream (std::ostream &sl) const final |
std::vector< double > | values () const final |
Private Member Functions | |
void | checkConsistency () const noexcept(false) |
Private Attributes | |
boost::container::small_vector < Vector2D, 10 > | m_vertices |
RectangleBounds | m_boundingBox |
Additional Inherited Members | |
Public Types inherited from Acts::SurfaceBounds | |
enum | BoundsType : int { eCone = 0, eCylinder = 1, eDiamond = 2, eDisc = 3, eEllipse = 5, eLine = 6, eRectangle = 7, eTrapezoid = 8, eTriangle = 9, eDiscTrapezoid = 10, eConvexPolygon = 11, eAnnulus = 12, eBoundless = 13, eOther = 14 } |
Static Protected Member Functions inherited from Acts::ConvexPolygonBoundsBase | |
template<typename coll_t > | |
static RectangleBounds | makeBoundingBox (const coll_t &vertices) |
template<typename coll_t > | |
static void | convex_impl (const coll_t &vertices) noexcept(false) |
This is the specialization handling a polygon with a dynamic number of points. It can accept any number of points.
Definition at line 142 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 142 of file ConvexPolygonBounds.hpp
|
delete |
Default constructor, deleted.
|
overridedefault |
Defaulted destructor.
Acts::ConvexPolygonBounds< PolygonDynamic >::ConvexPolygonBounds | ( | const std::vector< Vector2D > & | vertices | ) |
Constructor from a vector of vertices, to facilitate construction. This will throw if the vertices do not form a convex polygon.
vertices | The list of vertices. |
|
finalvirtual |
Return a rectangle bounds object that encloses this polygon.
Implements Acts::PlanarBounds.
|
privatenoexcept |
Return whether this bounds class is in fact convex thorws a logic error if not
|
finalvirtual |
Return the smallest distance to any point on the boundary of this bounds object.
lpos | The lposition position to get the distance to |
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return whether a local 2D point lies inside of the bounds defined by this object.
lposition | The local position to check |
bcheck | The BoundaryCheck object handling tolerances. |
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the bounds type of this bounds object.
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the vertices
lseg | the number of segments used to approximate and eventually curved line |
Implements Acts::PlanarBounds.
|
private |
Definition at line 191 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 191 of file ConvexPolygonBounds.hpp
|
private |
Definition at line 190 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 190 of file ConvexPolygonBounds.hpp