Public Types | Public Member Functions | Protected Types | Friends

OpenTissue::math::Vector3< value_type_ > Class Template Reference

#include <math_vector3.h>

List of all members.

Public Types

typedef value_traits_ value_traits
 Convience typedef to make value traits accesible for all template functions using Vector3 types.
typedef value_type_ value_type
 Typedef is required for compliance with many other libraries and data containers!
typedef size_t index_type

Public Member Functions

 Vector3 ()
 Vector3 (Vector3 const &v)
 Vector3 (value_type const &val)
template<typename T1 , typename T2 , typename T3 >
 Vector3 (T1 const &x_val, T2 const &y_val, T3 const &z_val)
 ~Vector3 ()
Vector3operator= (Vector3 const &cpy)
void clear ()
size_t size () const
value_typeoperator() (index_type index)
value_type const & operator() (index_type index) const
value_typeoperator[] (index_type index)
value_type const & operator[] (index_type index) const
bool operator< (Vector3 const &v) const
bool operator> (Vector3 const &v) const
bool operator== (Vector3 const &cmp) const
bool operator!= (Vector3 const &cmp) const
Vector3operator+= (Vector3 const &v)
Vector3operator-= (Vector3 const &v)
Vector3operator*= (value_type const &s)
Vector3operator/= (value_type const &s)
Vector3 operator+ (Vector3 const &v) const
Vector3 operator- (Vector3 const &v) const
Vector3 operator- () const
Vector3 operator% (Vector3 const &v) const
value_type operator* (Vector3 const &v) const
bool operator<= (Vector3 const &v) const
bool operator>= (Vector3 const &v) const
bool is_equal (Vector3 const &v, value_type const &threshold) const

Protected Types

typedef
OpenTissue::math::ValueTraits
< value_type_ > 
value_traits_

Friends

Vector3 fabs (Vector3 const &v)
Vector3 min (Vector3 const &A, Vector3 const &B)
Vector3 max (Vector3 const &A, Vector3 const &B)
Vector3 floor (Vector3 const &v)
Vector3 ceil (Vector3 const &v)
std::ostream & operator<< (std::ostream &o, Vector3 const &v)
std::istream & operator>> (std::istream &i, Vector3 &v)

template<typename value_type_>
class OpenTissue::math::Vector3< value_type_ >


Member Typedef Documentation

template<typename value_type_>
typedef size_t OpenTissue::math::Vector3< value_type_ >::index_type
template<typename value_type_>
typedef value_traits_ OpenTissue::math::Vector3< value_type_ >::value_traits

Convience typedef to make value traits accesible for all template functions using Vector3 types.

template<typename value_type_>
typedef OpenTissue::math::ValueTraits<value_type_> OpenTissue::math::Vector3< value_type_ >::value_traits_ [protected]
template<typename value_type_>
typedef value_type_ OpenTissue::math::Vector3< value_type_ >::value_type

Typedef is required for compliance with many other libraries and data containers!


Constructor & Destructor Documentation

template<typename value_type_>
OpenTissue::math::Vector3< value_type_ >::Vector3 (  )  [inline]
template<typename value_type_>
OpenTissue::math::Vector3< value_type_ >::Vector3 ( Vector3< value_type_ > const &  v  )  [inline]
template<typename value_type_>
OpenTissue::math::Vector3< value_type_ >::Vector3 ( value_type const &  val  )  [inline, explicit]
template<typename value_type_>
template<typename T1 , typename T2 , typename T3 >
OpenTissue::math::Vector3< value_type_ >::Vector3 ( T1 const &  x_val,
T2 const &  y_val,
T3 const &  z_val 
) [inline]
template<typename value_type_>
OpenTissue::math::Vector3< value_type_ >::~Vector3 (  )  [inline]

Member Function Documentation

template<typename value_type_>
void OpenTissue::math::Vector3< value_type_ >::clear (  )  [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::is_equal ( Vector3< value_type_ > const &  v,
value_type const &  threshold 
) const [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator!= ( Vector3< value_type_ > const &  cmp  )  const [inline]
template<typename value_type_>
Vector3 OpenTissue::math::Vector3< value_type_ >::operator% ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
value_type const& OpenTissue::math::Vector3< value_type_ >::operator() ( index_type  index  )  const [inline]
template<typename value_type_>
value_type& OpenTissue::math::Vector3< value_type_ >::operator() ( index_type  index  )  [inline]
template<typename value_type_>
value_type OpenTissue::math::Vector3< value_type_ >::operator* ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
Vector3& OpenTissue::math::Vector3< value_type_ >::operator*= ( value_type const &  s  )  [inline]
template<typename value_type_>
Vector3 OpenTissue::math::Vector3< value_type_ >::operator+ ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
Vector3& OpenTissue::math::Vector3< value_type_ >::operator+= ( Vector3< value_type_ > const &  v  )  [inline]
template<typename value_type_>
Vector3 OpenTissue::math::Vector3< value_type_ >::operator- ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
Vector3 OpenTissue::math::Vector3< value_type_ >::operator- (  )  const [inline]
template<typename value_type_>
Vector3& OpenTissue::math::Vector3< value_type_ >::operator-= ( Vector3< value_type_ > const &  v  )  [inline]
template<typename value_type_>
Vector3& OpenTissue::math::Vector3< value_type_ >::operator/= ( value_type const &  s  )  [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator< ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator<= ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
Vector3& OpenTissue::math::Vector3< value_type_ >::operator= ( Vector3< value_type_ > const &  cpy  )  [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator== ( Vector3< value_type_ > const &  cmp  )  const [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator> ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
bool OpenTissue::math::Vector3< value_type_ >::operator>= ( Vector3< value_type_ > const &  v  )  const [inline]
template<typename value_type_>
value_type& OpenTissue::math::Vector3< value_type_ >::operator[] ( index_type  index  )  [inline]
template<typename value_type_>
value_type const& OpenTissue::math::Vector3< value_type_ >::operator[] ( index_type  index  )  const [inline]
template<typename value_type_>
size_t OpenTissue::math::Vector3< value_type_ >::size (  )  const [inline]

Friends And Related Function Documentation

template<typename value_type_>
Vector3 ceil ( Vector3< value_type_ > const &  v  )  [friend]
template<typename value_type_>
Vector3 fabs ( Vector3< value_type_ > const &  v  )  [friend]
template<typename value_type_>
Vector3 floor ( Vector3< value_type_ > const &  v  )  [friend]
template<typename value_type_>
Vector3 max ( Vector3< value_type_ > const &  A,
Vector3< value_type_ > const &  B 
) [friend]
template<typename value_type_>
Vector3 min ( Vector3< value_type_ > const &  A,
Vector3< value_type_ > const &  B 
) [friend]
template<typename value_type_>
std::ostream& operator<< ( std::ostream &  o,
Vector3< value_type_ > const &  v 
) [friend]
template<typename value_type_>
std::istream& operator>> ( std::istream &  i,
Vector3< value_type_ > &  v 
) [friend]

The documentation for this class was generated from the following file: