Represents an interval.
More...
#include <Interval.h>
| SFCGAL::detail::Interval::Interval |
( |
| ) |
|
default constructor (empty interval)
| SFCGAL::detail::Interval::Interval |
( |
const double & |
value | ) |
|
collapsed interval constructor
| SFCGAL::detail::Interval::Interval |
( |
const double & |
v1, |
|
|
const double & |
v2 |
|
) |
| |
constructor with two values
| SFCGAL::detail::Interval::Interval |
( |
const Interval & |
other | ) |
|
|
default |
| void SFCGAL::detail::Interval::expandBy |
( |
const double & |
d | ) |
|
expand the interval
- Warning
- no effect if isEmpty()
| void SFCGAL::detail::Interval::expandToInclude |
( |
const Interval & |
other | ) |
|
expand the interval to include an other interval.
- Warning
- no effect if other.isEmpty()
| void SFCGAL::detail::Interval::expandToInclude |
( |
const double & |
value | ) |
|
expand the interval to include a value
- Warning
- no effect if value is NaN
| auto SFCGAL::detail::Interval::intersects |
( |
const Interval & |
other | ) |
const |
test if this intersects other
| auto SFCGAL::detail::Interval::isEmpty |
( |
| ) |
const |
indicates if the interval is empty
| const double& SFCGAL::detail::Interval::lower |
( |
| ) |
const |
|
inline |
| auto SFCGAL::detail::Interval::operator!= |
( |
const Interval & |
other | ) |
const |
compare two intervals
- Warning
- false for empty intervals
| auto SFCGAL::detail::Interval::operator= |
( |
const Interval & |
other | ) |
|
|
default |
| auto SFCGAL::detail::Interval::operator== |
( |
const Interval & |
other | ) |
const |
compare two intervals
- Warning
- true for empty intervals
| const double& SFCGAL::detail::Interval::upper |
( |
| ) |
const |
|
inline |
| double SFCGAL::detail::Interval::width |
( |
| ) |
const |
|
inline |
returns the with of the interval