Interval class for [a, b]. More...
#include <interval.h>
| Public Member Functions | |
| Interval & | bound (const Interval &other) | 
| Compute the minimum interval contains other and original interval.  More... | |
| Interval & | bound (S v) | 
| Compute the minimum interval contains v and original interval.  More... | |
| S | center () const | 
| bool | contains (S v) const | 
| S | diameter () const | 
| S | getAbsLower () const | 
| Return the nearest distance for points within the interval to zero.  More... | |
| S | getAbsUpper () const | 
| Return the farthest distance for points within the interval to zero.  More... | |
| bool | intersect (const Interval &other) | 
| Interval () | |
| Interval (S left, S right) | |
| construct interval [left, right]  More... | |
| Interval (S v) | |
| Interval | operator* (const Interval &other) const | 
| Interval | operator* (S d) const | 
| Interval & | operator*= (const Interval &other) | 
| Interval & | operator*= (S d) | 
| Interval | operator+ (const Interval &other) const | 
| add two intervals  More... | |
| Interval & | operator+= (const Interval &other) | 
| Interval | operator- () const | 
| Interval | operator- (const Interval &other) const | 
| minus another interval  More... | |
| Interval & | operator-= (const Interval &other) | 
| Interval | operator/ (const Interval &other) const | 
| other must not contain 0  More... | |
| Interval & | operator/= (const Interval &other) | 
| bool | operator== (const Interval &other) const | 
| whether two intervals are the same  More... | |
| S & | operator[] (size_t i) | 
| access the interval endpoints: 0 for left, 1 for right end  More... | |
| S | operator[] (size_t i) const | 
| access the interval endpoints: 0 for left, 1 for right end  More... | |
| bool | overlap (const Interval &other) const | 
| determine whether the intersection between intervals is empty  More... | |
| void | print () const | 
| void | setValue (S a, S b) | 
| construct interval [left, right]  More... | |
| void | setValue (S x) | 
| construct zero interval [x, x]  More... | |
| Public Attributes | |
| S | i_ [2] | 
Interval class for [a, b].
Definition at line 50 of file interval.h.
| fcl::Interval< S >::Interval | 
Definition at line 61 of file interval-inl.h.
| 
 | explicit | 
Definition at line 68 of file interval-inl.h.
| fcl::Interval< S >::Interval | ( | S | left, | 
| S | right | ||
| ) | 
construct interval [left, right]
Definition at line 75 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::bound | ( | const Interval< S > & | other | ) | 
Compute the minimum interval contains other and original interval.
Definition at line 387 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::bound | ( | S | v | ) | 
Compute the minimum interval contains v and original interval.
Definition at line 378 of file interval-inl.h.
| S fcl::Interval< S >::center | 
Definition at line 403 of file interval-inl.h.
| bool fcl::Interval< S >::contains | ( | S | v | ) | const | 
Definition at line 369 of file interval-inl.h.
| S fcl::Interval< S >::diameter | 
Definition at line 410 of file interval-inl.h.
| S fcl::Interval< S >::getAbsLower | 
Return the nearest distance for points within the interval to zero.
Definition at line 352 of file interval-inl.h.
| S fcl::Interval< S >::getAbsUpper | 
Return the farthest distance for points within the interval to zero.
Definition at line 361 of file interval-inl.h.
| bool fcl::Interval< S >::intersect | ( | const Interval< S > & | other | ) | 
Definition at line 334 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator* | ( | const Interval< S > & | other | ) | const | 
Definition at line 151 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator* | ( | S | d | ) | const | 
Definition at line 283 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::operator*= | ( | const Interval< S > & | other | ) | 
Definition at line 187 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::operator*= | ( | S | d | ) | 
Definition at line 291 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator+ | ( | const Interval< S > & | other | ) | const | 
add two intervals
Definition at line 119 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::operator+= | ( | const Interval< S > & | other | ) | 
Definition at line 133 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator- | 
Definition at line 345 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator- | ( | const Interval< S > & | other | ) | const | 
minus another interval
Definition at line 126 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::operator-= | ( | const Interval< S > & | other | ) | 
Definition at line 142 of file interval-inl.h.
| Interval< S > fcl::Interval< S >::operator/ | ( | const Interval< S > & | other | ) | const | 
other must not contain 0
Definition at line 310 of file interval-inl.h.
| Interval< S > & fcl::Interval< S >::operator/= | ( | const Interval< S > & | other | ) | 
Definition at line 317 of file interval-inl.h.
| bool fcl::Interval< S >::operator== | ( | const Interval< S > & | other | ) | const | 
whether two intervals are the same
Definition at line 110 of file interval-inl.h.
| S & fcl::Interval< S >::operator[] | ( | size_t | i | ) | 
access the interval endpoints: 0 for left, 1 for right end
Definition at line 103 of file interval-inl.h.
| S fcl::Interval< S >::operator[] | ( | size_t | i | ) | const | 
access the interval endpoints: 0 for left, 1 for right end
Definition at line 96 of file interval-inl.h.
| bool fcl::Interval< S >::overlap | ( | const Interval< S > & | other | ) | const | 
determine whether the intersection between intervals is empty
Definition at line 325 of file interval-inl.h.
| void fcl::Interval< S >::print | 
Definition at line 396 of file interval-inl.h.
| void fcl::Interval< S >::setValue | ( | S | a, | 
| S | b | ||
| ) | 
construct interval [left, right]
Definition at line 82 of file interval-inl.h.
| void fcl::Interval< S >::setValue | ( | S | x | ) | 
construct zero interval [x, x]
Definition at line 89 of file interval-inl.h.
| S fcl::Interval< S >::i_[2] | 
Definition at line 52 of file interval.h.