Classes | Functions

OpenTissue::math::interval Namespace Reference

Classes

class  Interval
class  BoostIntervalTypeTraits

Functions

template<typename value_type >
bool empty (Interval< value_type > const &i)
template<typename value_type >
Interval< value_type > intersect (Interval< value_type > const &A, Interval< value_type > const &B)
template<typename interval_type >
OpenTissue::math::Vector3
< interval_type > 
operator* (OpenTissue::math::Matrix3x3< interval_type > const &m, OpenTissue::math::Vector3< typename interval_type::base_type > const &v)
template<typename interval_type >
interval_type operator* (OpenTissue::math::Vector3< interval_type > const &vi, OpenTissue::math::Vector3< typename interval_type::base_type > const &vr)
template<class T , class Policies , class CharType , class CharTraits >
std::basic_ostream< CharType,
CharTraits > & 
operator<< (std::basic_ostream< CharType, CharTraits > &stream, boost::numeric::interval< T, Policies > const &value)
template<class T , class Policies , class CharType , class CharTraits >
std::basic_istream< CharType,
CharTraits > & 
operator>> (std::basic_istream< CharType, CharTraits > &stream, boost::numeric::interval< T, Policies > &value)
template<typename T , class CharType , class CharTraits >
std::basic_ostream< CharType,
CharTraits > & 
operator<< (std::basic_ostream< CharType, CharTraits > &out, Interval< T > const &i)
template<typename T , class CharType , class CharTraits >
std::basic_istream< CharType,
CharTraits > & 
operator>> (std::basic_istream< CharType, CharTraits > &in, Interval< T > const &i)

Function Documentation

template<typename value_type >
bool OpenTissue::math::interval::empty ( Interval< value_type > const &  i  )  [inline]

Interval Empty Test.

Parameters:
i The interval.
Returns:
If interval is empty then the return value is true otherwise it is false.
template<typename value_type >
Interval<value_type> OpenTissue::math::interval::intersect ( Interval< value_type > const &  A,
Interval< value_type > const &  B 
) [inline]

Interval Intersection.

Parameters:
A The first interval.
B The second interval.
Returns:
The resulting interval representing the intersection of the two specified intervals.
template<typename interval_type >
interval_type OpenTissue::math::interval::operator* ( OpenTissue::math::Vector3< interval_type > const &  vi,
OpenTissue::math::Vector3< typename interval_type::base_type > const &  vr 
) [inline]

Interval Vector - Vector Dot product. This templat function implements the operation

[[x1,x2],[y1,y2],[z1,z2]] * [x,y,z] = [x1,x2]*x+[y1,y2]*y+[z1,z2]*z.

Parameters:
vi The interval vector.
vr The vector
Returns:
The resulting interval type.
template<typename interval_type >
OpenTissue::math::Vector3< interval_type > OpenTissue::math::interval::operator* ( OpenTissue::math::Matrix3x3< interval_type > const &  m,
OpenTissue::math::Vector3< typename interval_type::base_type > const &  v 
) [inline]

Interval Matrix Vector Multiplication. Interval Matrix vector multiplication uses operator*(interval_vector, vector).

This operator is for instance used when we rotate a point with a bounded orientation matrix.

Parameters:
m The specified interval matrix.
v The specified vector.
Returns:
The resulting interval vector.
template<class T , class Policies , class CharType , class CharTraits >
std::basic_ostream<CharType, CharTraits>& OpenTissue::math::interval::operator<< ( std::basic_ostream< CharType, CharTraits > &  stream,
boost::numeric::interval< T, Policies > const &  value 
)

Stream Output Operator.

Parameters:
out The stream.
i The interval that should be output to a stream.
Returns:
A reference to the stream.
template<typename T , class CharType , class CharTraits >
std::basic_ostream<CharType,CharTraits>& OpenTissue::math::interval::operator<< ( std::basic_ostream< CharType, CharTraits > &  out,
Interval< T > const &  i 
)

Stream Output Operator.

Parameters:
out The stream.
i The interval that should be output to a stream.
Returns:
A reference to the stream.
template<class T , class Policies , class CharType , class CharTraits >
std::basic_istream<CharType, CharTraits>& OpenTissue::math::interval::operator>> ( std::basic_istream< CharType, CharTraits > &  stream,
boost::numeric::interval< T, Policies > &  value 
)

Stream Input Operator.

Parameters:
in The stream.
i The interval that be input from the specified stream.
Returns:
A reference to the stream.
template<typename T , class CharType , class CharTraits >
std::basic_istream<CharType,CharTraits>& OpenTissue::math::interval::operator>> ( std::basic_istream< CharType, CharTraits > &  in,
Interval< T > const &  i 
)

Stream Input Operator.

Parameters:
in The stream.
i The interval that be input from the specified stream.
Returns:
A reference to the stream.