ATLAS Offline Software
Loading...
Searching...
No Matches
Polygon Class Reference

List of points in 2D space. More...

#include <JetVoronoiDiagramHelpers.h>

Inheritance diagram for Polygon:
Collaboration diagram for Polygon:

Public Member Functions

void Add (coord x, coord y)
void FillVoroPolygon (VoronoiPolygonBoost &out) const

Public Attributes

elements
 STL member.

Detailed Description

List of points in 2D space.

Not necessary to be closed polygon.

Definition at line 92 of file JetVoronoiDiagramHelpers.h.

Member Function Documentation

◆ Add()

Definition at line 93 of file JetVoronoiDiagramHelpers.h.

93 {
95 }
ChargedTracksWeightFilter::Spline::Point Point
#define y
#define x
m_data push_back(elt)

◆ FillVoroPolygon()

Definition at line 96 of file JetVoronoiDiagramHelpers.h.

96 {
97 if (empty()) return;
98 // add all
99 for ( const Point& p : *this ) out.outer().push_back(VoronoiPointBoost(p.x,p.y));
100 // add first again to close shape if necessary
101 if ( front() != back() ) out.outer().push_back(VoronoiPointBoost(front().x,front().y));
102 // correct geometry
103 boost::geometry::correct(out);
104 }
boost::geometry::model::d2::point_xy< double > VoronoiPointBoost
static const Attributes_t empty
return m_collEvts back().back().max_entries

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.


The documentation for this class was generated from the following file: