Interval class for [a, b]. More...
#include <hpp/fcl/ccd/interval.h>
Public Member Functions | |
Interval () | |
Interval (FCL_REAL v) | |
Interval (FCL_REAL left, FCL_REAL right) | |
construct interval [left, right] More... | |
void | setValue (FCL_REAL a, FCL_REAL b) |
construct interval [left, right] More... | |
void | setValue (FCL_REAL x) |
construct zero interval [x, x] More... | |
FCL_REAL | operator[] (size_t i) const |
access the interval endpoints: 0 for left, 1 for right end More... | |
FCL_REAL & | operator[] (size_t i) |
access the interval endpoints: 0 for left, 1 for right end More... | |
bool | operator== (const Interval &other) const |
whether two intervals are the same More... | |
Interval | operator+ (const Interval &other) const |
add two intervals More... | |
Interval | operator- (const Interval &other) const |
minus another interval More... | |
Interval & | operator+= (const Interval &other) |
Interval & | operator-= (const Interval &other) |
Interval | operator* (const Interval &other) const |
Interval & | operator*= (const Interval &other) |
Interval | operator* (FCL_REAL d) const |
Interval & | operator*= (FCL_REAL d) |
Interval | operator/ (const Interval &other) const |
other must not contain 0 More... | |
Interval & | operator/= (const Interval &other) |
bool | overlap (const Interval &other) const |
determine whether the intersection between intervals is empty More... | |
bool | intersect (const Interval &other) |
Interval | operator- () const |
FCL_REAL | getAbsLower () const |
Return the nearest distance for points within the interval to zero. More... | |
FCL_REAL | getAbsUpper () const |
Return the farthest distance for points within the interval to zero. More... | |
bool | contains (FCL_REAL v) const |
Interval & | bound (FCL_REAL v) |
Compute the minimum interval contains v and original interval. More... | |
Interval & | bound (const Interval &other) |
Compute the minimum interval contains other and original interval. More... | |
void | print () const |
FCL_REAL | center () const |
FCL_REAL | diameter () const |
Public Attributes | |
FCL_REAL | i_ [2] |
Interval class for [a, b].
|
inline |
Referenced by operator*(), operator+(), and operator-().
Compute the minimum interval contains v and original interval.
References v.
Compute the minimum interval contains other and original interval.
References i_.
|
inline |
|
inline |
|
inline |
|
inline |
Return the nearest distance for points within the interval to zero.
|
inline |
Return the farthest distance for points within the interval to zero.
References Interval().
add two intervals
References i_, and Interval().
minus another interval
References i_, and Interval().
|
inline |
References Interval().
|
inline |
whether two intervals are the same
References i_.
|
inline |
access the interval endpoints: 0 for left, 1 for right end
|
inline |
access the interval endpoints: 0 for left, 1 for right end
|
inline |
determine whether the intersection between intervals is empty
References i_.
void fcl::Interval::print | ( | ) | const |
construct interval [left, right]
Referenced by fcl::IVector3::setValue(), and fcl::TimeInterval::setValue().
|
inline |
construct zero interval [x, x]
FCL_REAL fcl::Interval::i_[2] |
Referenced by bound(), intersect(), operator+(), operator+=(), operator-(), operator-=(), operator==(), and overlap().