maliput_sparse
|
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 {} |
Interval | ( | double | min_in, |
double | max_in | ||
) |
Creates a Interval.
min_in | Is the minimum value of the interval. |
max_in | Is the maximum value of the interval. |
maliput::common::assertion_error | When min_in is greater than max_in . |
Interval | ( | double | min_max | ) |
Creates a Interval where the minimum value is equal to the maximum value.
min_max | Is the minimum and maximum value of the interval. |
bool operator< | ( | const Interval & | rhs | ) | const |
Less than operator.
double max {} |
double min {} |