All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcl::Vec3fX< T > Class Template Reference

Vector3 class wrapper. The core data is in the template parameter class. More...

#include <hpp/fcl/math/vec_3f.h>

Collaboration diagram for fcl::Vec3fX< T >:

Public Types

typedef T::meta_type U
 

Public Member Functions

 Vec3fX ()
 
 Vec3fX (const Vec3fX &other)
 
 Vec3fX (U x, U y, U z)
 create Vector (x, y, z) More...
 
 Vec3fX (U x)
 create vector (x, x, x) More...
 
 Vec3fX (const T &data_)
 create vector using the internal data type More...
 
U operator[] (size_t i) const
 
Uoperator[] (size_t i)
 
Vec3fX operator+ (const Vec3fX &other) const
 
Vec3fX operator- (const Vec3fX &other) const
 
Vec3fX operator* (const Vec3fX &other) const
 
Vec3fX operator/ (const Vec3fX &other) const
 
Vec3fXoperator+= (const Vec3fX &other)
 
Vec3fXoperator-= (const Vec3fX &other)
 
Vec3fXoperator*= (const Vec3fX &other)
 
Vec3fXoperator/= (const Vec3fX &other)
 
Vec3fX operator+ (U t) const
 
Vec3fX operator- (U t) const
 
Vec3fX operator* (U t) const
 
Vec3fX operator/ (U t) const
 
Vec3fXoperator+= (U t)
 
Vec3fXoperator-= (U t)
 
Vec3fXoperator*= (U t)
 
Vec3fXoperator/= (U t)
 
Vec3fX operator- () const
 
Vec3fX cross (const Vec3fX &other) const
 
U dot (const Vec3fX &other) const
 
Vec3fXnormalize ()
 
Vec3fXnormalize (bool *signal)
 
Vec3fXabs ()
 
U length () const
 
U norm () const
 
U sqrLength () const
 
U squaredNorm () const
 
void setValue (U x, U y, U z)
 
void setValue (U x)
 
void setZero ()
 
bool equal (const Vec3fX &other, U epsilon=std::numeric_limits< U >::epsilon()*100) const
 
Vec3fX< T > & negate ()
 
bool operator== (const Vec3fX &other) const
 
bool operator!= (const Vec3fX &other) const
 
Vec3fX< T > & ubound (const Vec3fX< T > &u)
 
Vec3fX< T > & lbound (const Vec3fX< T > &l)
 
bool isZero () const
 

Public Attributes

data
 interval vector3 data More...
 

Detailed Description

template<typename T>
class fcl::Vec3fX< T >

Vector3 class wrapper. The core data is in the template parameter class.

Member Typedef Documentation

template<typename T>
typedef T::meta_type fcl::Vec3fX< T >::U

Constructor & Destructor Documentation

template<typename T>
fcl::Vec3fX< T >::Vec3fX ( const Vec3fX< T > &  other)
inline
template<typename T>
fcl::Vec3fX< T >::Vec3fX ( U  x,
U  y,
U  z 
)
inline

create Vector (x, y, z)

template<typename T>
fcl::Vec3fX< T >::Vec3fX ( U  x)
inline

create vector (x, x, x)

template<typename T>
fcl::Vec3fX< T >::Vec3fX ( const T &  data_)
inline

create vector using the internal data type

Member Function Documentation

template<typename T>
Vec3fX& fcl::Vec3fX< T >::abs ( )
inline
template<typename T>
bool fcl::Vec3fX< T >::equal ( const Vec3fX< T > &  other,
U  epsilon = std::numeric_limits<U>::epsilon() * 100 
) const
inline
template<typename T>
bool fcl::Vec3fX< T >::isZero ( ) const
inline
template<typename T>
Vec3fX<T>& fcl::Vec3fX< T >::lbound ( const Vec3fX< T > &  l)
inline
template<typename T>
U fcl::Vec3fX< T >::length ( ) const
inline
template<typename T>
Vec3fX<T>& fcl::Vec3fX< T >::negate ( )
inline
template<typename T>
U fcl::Vec3fX< T >::norm ( ) const
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::normalize ( bool *  signal)
inline
template<typename T>
bool fcl::Vec3fX< T >::operator!= ( const Vec3fX< T > &  other) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator* ( const Vec3fX< T > &  other) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator* ( U  t) const
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator*= ( const Vec3fX< T > &  other)
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator*= ( U  t)
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator+ ( const Vec3fX< T > &  other) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator+ ( U  t) const
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator+= ( const Vec3fX< T > &  other)
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator+= ( U  t)
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator- ( const Vec3fX< T > &  other) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator- ( U  t) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator- ( ) const
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator-= ( const Vec3fX< T > &  other)
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator-= ( U  t)
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator/ ( const Vec3fX< T > &  other) const
inline
template<typename T>
Vec3fX fcl::Vec3fX< T >::operator/ ( U  t) const
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator/= ( const Vec3fX< T > &  other)
inline
template<typename T>
Vec3fX& fcl::Vec3fX< T >::operator/= ( U  t)
inline
template<typename T>
bool fcl::Vec3fX< T >::operator== ( const Vec3fX< T > &  other) const
inline
template<typename T>
U fcl::Vec3fX< T >::operator[] ( size_t  i) const
inline
template<typename T>
U& fcl::Vec3fX< T >::operator[] ( size_t  i)
inline
template<typename T>
void fcl::Vec3fX< T >::setValue ( U  x,
U  y,
U  z 
)
inline
template<typename T>
void fcl::Vec3fX< T >::setValue ( U  x)
inline
template<typename T>
void fcl::Vec3fX< T >::setZero ( )
inline
template<typename T>
U fcl::Vec3fX< T >::sqrLength ( ) const
inline

Referenced by fcl::OBB::size().

template<typename T>
U fcl::Vec3fX< T >::squaredNorm ( ) const
inline
template<typename T>
Vec3fX<T>& fcl::Vec3fX< T >::ubound ( const Vec3fX< T > &  u)
inline

Member Data Documentation

template<typename T>
T fcl::Vec3fX< T >::data

interval vector3 data

Referenced by fcl::abs(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::cross(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::dot(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::dot(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::dotX(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::dotY(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::dotZ(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::equal(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::lbound(), fcl::max(), fcl::min(), fcl::normalize(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator*(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::operator*(), fcl::operator*(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator*=(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator+(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator+=(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator-(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator-=(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator/(), fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::operator/=(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::transposeDot(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::transposeDotX(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::transposeDotY(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::transposeDotZ(), fcl::Matrix3fX< details::Matrix3Data< FCL_REAL > >::transposeTimes(), and fcl::Vec3fX< details::Vec3Data< FCL_REAL > >::ubound().