6 template <
typename Real>
15 template <
typename Real>
24 template <
typename Real>
34 template <
typename Real>
44 template <
typename Real>
47 return (
v0 == interval.
v0)
48 && (
v1 == interval.
v0)
53 template <
typename Real>
56 return !((*this) == interval);
59 template <
typename Real>
64 template <
typename Real>
70 template <
typename Real>
76 template <
typename Real>
82 template <
typename Real>
89 template <
typename Real>
96 template <
typename Real>
104 if (val >
v0 && val <
v1)
112 template <
typename Real>
118 template <
typename Real>
131 template <
typename Real>
137 template <
typename Real>
DYN_FUNC void setRightLimit(Real val, bool bOpen=false)
DYN_FUNC void setLeftLimit(Real val, bool bOpen=false)
DYN_FUNC bool inside(Real val) const
static DYN_FUNC Interval< Real > unitInterval()
DYN_FUNC bool operator!=(const Interval< Real > &interval)
DYN_FUNC bool isRightOpen() const
DYN_FUNC bool isLeftOpen() const
DYN_FUNC bool isEmpty() const
DYN_FUNC Interval< Real > & operator=(const Interval< Real > &interval)
DYN_FUNC Real size() const
DYN_FUNC Interval< Real > intersect(const Interval< Real > &itv) const
DYN_FUNC bool outside(Real val) const
DYN_FUNC bool operator==(const Interval< Real > &interval)
This is an implementation of AdditiveCCD based on peridyno.
DYN_FUNC T minimum(const T &v0, const T &v1)
DYN_FUNC T maximum(const T &v0, const T &v1)