Public Member Functions | Public Attributes | List of all members
fcl::Interval< S > Struct Template Reference

Interval class for [a, b]. More...

#include <interval.h>

Public Member Functions

Intervalbound (const Interval &other)
 Compute the minimum interval contains other and original interval. More...
 
Intervalbound (S v)
 Compute the minimum interval contains v and original interval. More...
 
center () const
 
bool contains (S v) const
 
diameter () const
 
getAbsLower () const
 Return the nearest distance for points within the interval to zero. More...
 
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
 
Intervaloperator*= (const Interval &other)
 
Intervaloperator*= (S d)
 
Interval operator+ (const Interval &other) const
 add two intervals More...
 
Intervaloperator+= (const Interval &other)
 
Interval operator- () const
 
Interval operator- (const Interval &other) const
 minus another interval More...
 
Intervaloperator-= (const Interval &other)
 
Interval operator/ (const Interval &other) const
 other must not contain 0 More...
 
Intervaloperator/= (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...
 
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

i_ [2]
 

Detailed Description

template<typename S>
struct fcl::Interval< S >

Interval class for [a, b].

Definition at line 50 of file interval.h.

Constructor & Destructor Documentation

◆ Interval() [1/3]

template<typename S >
fcl::Interval< S >::Interval

Definition at line 61 of file interval-inl.h.

◆ Interval() [2/3]

template<typename S >
fcl::Interval< S >::Interval ( v)
explicit

Definition at line 68 of file interval-inl.h.

◆ Interval() [3/3]

template<typename S >
fcl::Interval< S >::Interval ( left,
right 
)

construct interval [left, right]

Definition at line 75 of file interval-inl.h.

Member Function Documentation

◆ bound() [1/2]

template<typename S >
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.

◆ bound() [2/2]

template<typename S >
Interval< S > & fcl::Interval< S >::bound ( v)

Compute the minimum interval contains v and original interval.

Definition at line 378 of file interval-inl.h.

◆ center()

template<typename S >
S fcl::Interval< S >::center

Definition at line 403 of file interval-inl.h.

◆ contains()

template<typename S >
bool fcl::Interval< S >::contains ( v) const

Definition at line 369 of file interval-inl.h.

◆ diameter()

template<typename S >
S fcl::Interval< S >::diameter

Definition at line 410 of file interval-inl.h.

◆ getAbsLower()

template<typename S >
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.

◆ getAbsUpper()

template<typename S >
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.

◆ intersect()

template<typename S >
bool fcl::Interval< S >::intersect ( const Interval< S > &  other)

Definition at line 334 of file interval-inl.h.

◆ operator*() [1/2]

template<typename S >
Interval< S > fcl::Interval< S >::operator* ( const Interval< S > &  other) const

Definition at line 151 of file interval-inl.h.

◆ operator*() [2/2]

template<typename S >
Interval< S > fcl::Interval< S >::operator* ( d) const

Definition at line 283 of file interval-inl.h.

◆ operator*=() [1/2]

template<typename S >
Interval< S > & fcl::Interval< S >::operator*= ( const Interval< S > &  other)

Definition at line 187 of file interval-inl.h.

◆ operator*=() [2/2]

template<typename S >
Interval< S > & fcl::Interval< S >::operator*= ( d)

Definition at line 291 of file interval-inl.h.

◆ operator+()

template<typename S >
Interval< S > fcl::Interval< S >::operator+ ( const Interval< S > &  other) const

add two intervals

Definition at line 119 of file interval-inl.h.

◆ operator+=()

template<typename S >
Interval< S > & fcl::Interval< S >::operator+= ( const Interval< S > &  other)

Definition at line 133 of file interval-inl.h.

◆ operator-() [1/2]

template<typename S >
Interval< S > fcl::Interval< S >::operator-

Definition at line 345 of file interval-inl.h.

◆ operator-() [2/2]

template<typename S >
Interval< S > fcl::Interval< S >::operator- ( const Interval< S > &  other) const

minus another interval

Definition at line 126 of file interval-inl.h.

◆ operator-=()

template<typename S >
Interval< S > & fcl::Interval< S >::operator-= ( const Interval< S > &  other)

Definition at line 142 of file interval-inl.h.

◆ operator/()

template<typename S >
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.

◆ operator/=()

template<typename S >
Interval< S > & fcl::Interval< S >::operator/= ( const Interval< S > &  other)

Definition at line 317 of file interval-inl.h.

◆ operator==()

template<typename S >
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.

◆ operator[]() [1/2]

template<typename S >
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.

◆ operator[]() [2/2]

template<typename S >
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.

◆ overlap()

template<typename S >
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.

◆ print()

template<typename S >
void fcl::Interval< S >::print

Definition at line 396 of file interval-inl.h.

◆ setValue() [1/2]

template<typename S >
void fcl::Interval< S >::setValue ( a,
b 
)

construct interval [left, right]

Definition at line 82 of file interval-inl.h.

◆ setValue() [2/2]

template<typename S >
void fcl::Interval< S >::setValue ( x)

construct zero interval [x, x]

Definition at line 89 of file interval-inl.h.

Member Data Documentation

◆ i_

template<typename S >
S fcl::Interval< S >::i_[2]

Definition at line 52 of file interval.h.


The documentation for this struct was generated from the following files:


fcl
Author(s):
autogenerated on Fri Apr 2 2021 02:38:02