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