Struct Acts::Extent

struct Extent

This is a nested struct to the GeometryObject representation which can be retrieved and used for surface parsing and will give you the maximal extent in 3D space/.

Public Functions

Extent() = default
inline void check(const Vector3 &vtx)

Check the vertex.

Parameters

vtx – the Vertex to be checked

inline void extend(const Extent &other)

Extend with another extent.

Parameters

other – is the source Extent

inline bool intersects(const Extent &other, BinningValue bVal = binValues, double tolerance = s_epsilon)

Check if it intersects.

Parameters
  • other – The source Extent

  • bVal – The binning value for the check (binValues for all)

  • tolerance – An additional tolerance for the intersection check

inline double &max(BinningValue bval)

Access the max parameter.

Parameters

bval – the binning identification

inline double max(BinningValue bval) const

Access the max parameter.

Parameters

bval – the binning identification

inline double medium(BinningValue bval) const

Access the medium parameter.

Parameters

bval – the binning identification

inline double &min(BinningValue bval)

Access the minimum parameter.

Parameters

bval – the binning identification

inline double min(BinningValue bval) const

Access the minimum parameter.

Parameters

bval – the binning identification

inline double range(BinningValue bval) const

Access the range - always positive.

Parameters

bval – the binning identification

std::ostream &toStream(std::ostream &sl) const

Convert to output stream for screen output.

Parameters

sl – [in,out] The output stream

Public Members

std::vector<Range> ranges = {(int)binValues, maxrange}

Public Static Attributes

static constexpr Range maxrange = {maxval, -maxval}

Start value.

static constexpr double maxval = std::numeric_limits<double>::max()

Possible maximal value.