SFCGAL
1.4.1
|
Represents an interval. More...
#include <Interval.h>
Public Member Functions | |
Interval () | |
default constructor (empty interval) More... | |
Interval (const double &value) | |
collapsed interval constructor More... | |
Interval (const double &v1, const double &v2) | |
constructor with two values More... | |
Interval (const Interval &other) | |
copy constructor More... | |
Interval & | operator= (const Interval &other) |
assign operator More... | |
~Interval () | |
destructor More... | |
bool | isEmpty () const |
indicates if the interval is empty More... | |
const double & | lower () const |
returns the lower value More... | |
const double & | upper () const |
returns the upper value More... | |
double | width () const |
returns the with of the interval More... | |
void | expandBy (const double &d) |
expand the interval More... | |
void | expandToInclude (const Interval &other) |
expand the interval to include an other interval. More... | |
void | expandToInclude (const double &value) |
expand the interval to include a value More... | |
bool | intersects (const Interval &other) const |
test if this intersects other More... | |
bool | operator== (const Interval &other) const |
compare two intervals More... | |
bool | operator!= (const Interval &other) const |
compare two intervals More... | |
Interval () | |
default constructor (empty interval) More... | |
Interval (const double &value) | |
collapsed interval constructor More... | |
Interval (const double &v1, const double &v2) | |
constructor with two values More... | |
Interval (const Interval &other) | |
copy constructor More... | |
Interval & | operator= (const Interval &other) |
assign operator More... | |
~Interval () | |
destructor More... | |
bool | isEmpty () const |
indicates if the interval is empty More... | |
const double & | lower () const |
returns the lower value More... | |
const double & | upper () const |
returns the upper value More... | |
double | width () const |
returns the with of the interval More... | |
void | expandBy (const double &d) |
expand the interval More... | |
void | expandToInclude (const Interval &other) |
expand the interval to include an other interval. More... | |
void | expandToInclude (const double &value) |
expand the interval to include a value More... | |
bool | intersects (const Interval &other) const |
test if this intersects other More... | |
bool | operator== (const Interval &other) const |
compare two intervals More... | |
bool | operator!= (const Interval &other) const |
compare two intervals More... | |
Represents an interval.
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
|
default |
copy constructor
|
default |
destructor
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 | ) |
copy constructor
SFCGAL::detail::Interval::~Interval | ( | ) |
destructor
void SFCGAL::detail::Interval::expandBy | ( | const double & | d | ) |
expand the interval
void SFCGAL::detail::Interval::expandBy | ( | const double & | d | ) |
expand the interval
void SFCGAL::detail::Interval::expandToInclude | ( | const double & | value | ) |
expand the interval to include a value
void SFCGAL::detail::Interval::expandToInclude | ( | const double & | value | ) |
expand the interval to include a value
void SFCGAL::detail::Interval::expandToInclude | ( | const Interval & | other | ) |
expand the interval to include an other interval.
void SFCGAL::detail::Interval::expandToInclude | ( | const Interval & | other | ) |
expand the interval to include an other interval.
auto SFCGAL::detail::Interval::intersects | ( | const Interval & | other | ) | const |
test if this intersects other
bool 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
bool SFCGAL::detail::Interval::isEmpty | ( | ) | const |
indicates if the interval is empty
|
inline |
returns the lower value
|
inline |
returns the lower value
auto SFCGAL::detail::Interval::operator!= | ( | const Interval & | other | ) | const |
compare two intervals
bool SFCGAL::detail::Interval::operator!= | ( | const Interval & | other | ) | const |
compare two intervals
|
default |
assign operator
auto SFCGAL::detail::Interval::operator== | ( | const Interval & | other | ) | const |
compare two intervals
bool SFCGAL::detail::Interval::operator== | ( | const Interval & | other | ) | const |
compare two intervals
|
inline |
returns the upper value
|
inline |
returns the upper value
|
inline |
returns the with of the interval
|
inline |
returns the with of the interval