|
Autoware.Auto
|
|
Data structure to contain scalar interval bounds. More...
#include <interval.hpp>
Public Member Functions | |
| Interval () | |
| Constructor: initialize an empty interval with members set to NaN. More... | |
| Interval (const T &min, const T &max) | |
| Constructor: specify exact interval bounds. More... | |
Static Public Member Functions | |
| static bool | abs_eq (const Interval &i1, const Interval &i2, const T &eps) |
| Test whether the two intervals have bounds within epsilon of each other. More... | |
| static T | min (const Interval &i) |
| The minimum bound of the interval. More... | |
| static T | max (const Interval &i) |
| The maximum bound of the interval. More... | |
| static T | measure (const Interval &i) |
| Return the measure (length) of the interval. More... | |
| static bool | zero_measure (const Interval &i) |
| Utility for checking whether an interval has zero measure. More... | |
| static bool | empty (const Interval &i) |
| Whether the interval is empty or not. More... | |
| static bool | contains (const Interval &i, const T &value) |
| Test for whether a given interval contains a given value. More... | |
| static bool | is_subset_eq (const Interval &i1, const Interval &i2) |
| Test for whether 'i1' subseteq 'i2'. More... | |
| static Interval | intersect (const Interval &i1, const Interval &i2) |
| Compute the intersection of two intervals as a new interval. More... | |
| static T | clamp_to (const Interval &i, T val) |
| Clamp a scalar 'val' onto 'interval'. More... | |
Friends | |
| bool | operator== (const Interval &i1, const Interval &i2) |
| Compute equality. More... | |
| bool | operator!= (const Interval &i1, const Interval &i2) |
| Compute inequality and the logical negation of equality. More... | |
| std::ostream & | operator<< (std::ostream &os, const Interval &i) |
| Stream overload for Interval types. More... | |
Data structure to contain scalar interval bounds.
| autoware::common::geometry::Interval< T >::Interval |
Constructor: initialize an empty interval with members set to NaN.
| autoware::common::geometry::Interval< T >::Interval | ( | const T & | min, |
| const T & | max | ||
| ) |
Constructor: specify exact interval bounds.
|
static |
Test whether the two intervals have bounds within epsilon of each other.
|
static |
Clamp a scalar 'val' onto 'interval'.
|
static |
Test for whether a given interval contains a given value.
|
static |
Whether the interval is empty or not.
|
static |
Compute the intersection of two intervals as a new interval.
|
static |
Test for whether 'i1' subseteq 'i2'.
|
inlinestatic |
The maximum bound of the interval.
|
static |
Return the measure (length) of the interval.
|
inlinestatic |
The minimum bound of the interval.
|
static |
Utility for checking whether an interval has zero measure.
Compute inequality and the logical negation of equality.
|
friend |
Stream overload for Interval types.
Compute equality.
Two intervals compare equal iff they are both valid and they are both either empty or have equal bounds.