maliput_sparse
LineString< CoordinateT, DistanceFunction >::Segment::Interval Struct Reference

Detailed Description

template<typename CoordinateT, typename DistanceFunction = details::EuclideanDistance<CoordinateT>>
struct maliput_sparse::geometry::LineString< CoordinateT, DistanceFunction >::Segment::Interval

Defines an interval in the \( p \) value of the parametrized LineString.

The Less than operator is defined to allow the use of this struct as a key in a collection like std::map.

#include <include/maliput_sparse/geometry/line_string.h>

Public Member Functions

 Interval (double min_in, double max_in)
 Creates a Interval. More...
 
 Interval (double min_max)
 Creates a Interval where the minimum value is equal to the maximum value. More...
 
bool operator< (const Interval &rhs) const
 Less than operator. More...
 

Public Attributes

double min {}
 
double max {}
 

Constructor & Destructor Documentation

◆ Interval() [1/2]

Interval ( double  min_in,
double  max_in 
)

Creates a Interval.

Parameters
min_inIs the minimum value of the interval.
max_inIs the maximum value of the interval.
Exceptions
maliput::common::assertion_errorWhen min_in is greater than max_in.

◆ Interval() [2/2]

Interval ( double  min_max)

Creates a Interval where the minimum value is equal to the maximum value.

Parameters
min_maxIs the minimum and maximum value of the interval.

Member Function Documentation

◆ operator<()

bool operator< ( const Interval rhs) const

Less than operator.

Member Data Documentation

◆ max

double max {}

◆ min

double min {}

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