Public Types | Public Member Functions | Protected Attributes | List of all members
trimesh::Vec< D, T > Class Template Reference

#include <Vec.h>

Public Types

typedef const value_typeconst_iterator
 
typedef const value_typeconst_pointer
 
typedef const value_typeconst_reference
 
typedef ::std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ::std::ptrdiff_t difference_type
 
typedef value_typeiterator
 
typedef value_typepointer
 
typedef value_typereference
 
typedef ::std::reverse_iterator< iteratorreverse_iterator
 
typedef ::std::size_t size_type
 
typedef T value_type
 

Public Member Functions

Vec< D, Tapply (value_type func(value_type)) const
 
Vec< D, Tapply (value_type func(const value_type &)) const
 
reference at (size_type i)
 
const_reference at (size_type i) const
 
value_type avg () const
 
reference back ()
 
const_reference back () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void clear ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
Vec< 3, Tcross (const Vec< 3, T > &x) const
 
Vec< D, Tcshift (int n) const
 
pointer data ()
 
const_pointer data () const
 
value_type dot (const Vec< D, T > &x) const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void fill (const value_type &x)
 
reference front ()
 
const_reference front () const
 
T length () const
 
Vec< D, T > & max (const Vec< D, T > &x)
 
value_type max () const
 
size_type max_size () const
 
value_type mean () const
 
Vec< D, T > & min (const Vec< D, T > &x)
 
value_type min () const
 
void normalize ()
 
 operator const T * ()
 
 operator const T * () const
 
 operator T * ()
 
Vec< D, T > & operator*= (const Vec< D, T > &x)
 
Vec< D, T > & operator*= (const T &x)
 
Vec< D, T > & operator+= (const Vec< D, T > &x)
 
Vec< D, T > & operator-= (const Vec< D, T > &x)
 
Vec< D, T > & operator/= (const Vec< D, T > &x)
 
Vec< D, T > & operator/= (const T &x)
 
Vec< D, T > & operator= (const value_type &x)
 
reference operator[] (size_type i)
 
reference operator[] (int i)
 
const_reference operator[] (size_type i) const
 
const_reference operator[] (int i) const
 
value_type product () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
Vec< D, Tshift (int n) const
 
size_type size () const
 
value_type sum () const
 
value_type sumabs () const
 
void swap (Vec< D, T > &x)
 
 Vec ()
 
 Vec (void *)
 
 Vec (const T &x)
 
 Vec (const T &x, const T &y)
 
 Vec (const T &x, const T &y, const T &z)
 
 Vec (const T &x, const T &y, const T &z, const T &w)
 
template<class S >
 Vec (const S &x)
 
reference x ()
 
const_reference x () const
 
reference y ()
 
const_reference y () const
 
reference z ()
 
const_reference z () const
 

Protected Attributes

T v [D]
 

Detailed Description

template<size_t D, class T = float>
class trimesh::Vec< D, T >

Definition at line 104 of file Vec.h.

Member Typedef Documentation

template<size_t D, class T = float>
typedef const value_type* trimesh::Vec< D, T >::const_iterator

Definition at line 113 of file Vec.h.

template<size_t D, class T = float>
typedef const value_type* trimesh::Vec< D, T >::const_pointer

Definition at line 109 of file Vec.h.

template<size_t D, class T = float>
typedef const value_type& trimesh::Vec< D, T >::const_reference

Definition at line 111 of file Vec.h.

template<size_t D, class T = float>
typedef ::std::reverse_iterator<const_iterator> trimesh::Vec< D, T >::const_reverse_iterator

Definition at line 115 of file Vec.h.

template<size_t D, class T = float>
typedef ::std::ptrdiff_t trimesh::Vec< D, T >::difference_type

Definition at line 117 of file Vec.h.

template<size_t D, class T = float>
typedef value_type* trimesh::Vec< D, T >::iterator

Definition at line 112 of file Vec.h.

template<size_t D, class T = float>
typedef value_type* trimesh::Vec< D, T >::pointer

Definition at line 108 of file Vec.h.

template<size_t D, class T = float>
typedef value_type& trimesh::Vec< D, T >::reference

Definition at line 110 of file Vec.h.

template<size_t D, class T = float>
typedef ::std::reverse_iterator<iterator> trimesh::Vec< D, T >::reverse_iterator

Definition at line 114 of file Vec.h.

template<size_t D, class T = float>
typedef ::std::size_t trimesh::Vec< D, T >::size_type

Definition at line 116 of file Vec.h.

template<size_t D, class T = float>
typedef T trimesh::Vec< D, T >::value_type

Definition at line 107 of file Vec.h.

Constructor & Destructor Documentation

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( )
inline

Definition at line 125 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( void )
inline

Definition at line 129 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( const T x)
inlineexplicit

Definition at line 132 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( const T x,
const T y 
)
inline

Definition at line 138 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( const T x,
const T y,
const T z 
)
inline

Definition at line 142 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::Vec ( const T x,
const T y,
const T z,
const T w 
)
inline

Definition at line 146 of file Vec.h.

template<size_t D, class T = float>
template<class S >
trimesh::Vec< D, T >::Vec ( const S &  x)
inlineexplicit

Definition at line 153 of file Vec.h.

Member Function Documentation

template<size_t D, class T = float>
Vec<D, T> trimesh::Vec< D, T >::apply ( value_type   funcvalue_type) const
inline

Definition at line 504 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T> trimesh::Vec< D, T >::apply ( value_type   funcconst value_type &) const
inline

Definition at line 511 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::at ( size_type  i)
inline

Definition at line 180 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::at ( size_type  i) const
inline

Definition at line 186 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::avg ( ) const
inline

Definition at line 473 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::back ( )
inline

Definition at line 253 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::back ( ) const
inline

Definition at line 257 of file Vec.h.

template<size_t D, class T = float>
iterator trimesh::Vec< D, T >::begin ( )
inline

Definition at line 285 of file Vec.h.

template<size_t D, class T = float>
const_iterator trimesh::Vec< D, T >::begin ( ) const
inline

Definition at line 289 of file Vec.h.

template<size_t D, class T = float>
const_iterator trimesh::Vec< D, T >::cbegin ( ) const
inline

Definition at line 293 of file Vec.h.

template<size_t D, class T = float>
const_iterator trimesh::Vec< D, T >::cend ( ) const
inline

Definition at line 305 of file Vec.h.

template<size_t D, class T = float>
void trimesh::Vec< D, T >::clear ( )
inline

Definition at line 351 of file Vec.h.

template<size_t D, class T = float>
const_reverse_iterator trimesh::Vec< D, T >::crbegin ( ) const
inline

Definition at line 317 of file Vec.h.

template<size_t D, class T = float>
const_reverse_iterator trimesh::Vec< D, T >::crend ( ) const
inline

Definition at line 329 of file Vec.h.

template<size_t D, class T = float>
Vec<3, T> trimesh::Vec< D, T >::cross ( const Vec< 3, T > &  x) const
inline

Definition at line 449 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T> trimesh::Vec< D, T >::cshift ( int  n) const
inline

Definition at line 518 of file Vec.h.

template<size_t D, class T = float>
pointer trimesh::Vec< D, T >::data ( )
inline

Definition at line 275 of file Vec.h.

template<size_t D, class T = float>
const_pointer trimesh::Vec< D, T >::data ( ) const
inline

Definition at line 279 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::dot ( const Vec< D, T > &  x) const
inline

Definition at line 440 of file Vec.h.

template<size_t D, class T = float>
bool trimesh::Vec< D, T >::empty ( ) const
inline

Definition at line 345 of file Vec.h.

template<size_t D, class T = float>
iterator trimesh::Vec< D, T >::end ( )
inline

Definition at line 297 of file Vec.h.

template<size_t D, class T = float>
const_iterator trimesh::Vec< D, T >::end ( ) const
inline

Definition at line 301 of file Vec.h.

template<size_t D, class T = float>
void trimesh::Vec< D, T >::fill ( const value_type x)
inline

Definition at line 357 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::front ( )
inline

Definition at line 245 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::front ( ) const
inline

Definition at line 249 of file Vec.h.

template<size_t D, class T = float>
T trimesh::Vec< D, T >::length ( ) const
inline

Definition at line 221 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::max ( const Vec< D, T > &  x)
inline

Definition at line 421 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::max ( ) const
inline

Definition at line 496 of file Vec.h.

template<size_t D, class T = float>
size_type trimesh::Vec< D, T >::max_size ( ) const
inline

Definition at line 339 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::mean ( ) const
inline

Definition at line 477 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::min ( const Vec< D, T > &  x)
inline

Definition at line 414 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::min ( ) const
inline

Definition at line 488 of file Vec.h.

template<size_t D, class T = float>
void trimesh::Vec< D, T >::normalize ( )
inline

Definition at line 225 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::operator const T * ( )
inline

Definition at line 267 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::operator const T * ( ) const
inline

Definition at line 271 of file Vec.h.

template<size_t D, class T = float>
trimesh::Vec< D, T >::operator T * ( )
inline

Definition at line 263 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator*= ( const Vec< D, T > &  x)
inline

Definition at line 384 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator*= ( const T x)
inline

Definition at line 391 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator+= ( const Vec< D, T > &  x)
inline

Definition at line 370 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator-= ( const Vec< D, T > &  x)
inline

Definition at line 377 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator/= ( const Vec< D, T > &  x)
inline

Definition at line 398 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator/= ( const T x)
inline

Definition at line 405 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T>& trimesh::Vec< D, T >::operator= ( const value_type x)
inline

Definition at line 362 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::operator[] ( size_type  i)
inline

Definition at line 161 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::operator[] ( int  i)
inline

Definition at line 165 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::operator[] ( size_type  i) const
inline

Definition at line 169 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::operator[] ( int  i) const
inline

Definition at line 173 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::product ( ) const
inline

Definition at line 481 of file Vec.h.

template<size_t D, class T = float>
reverse_iterator trimesh::Vec< D, T >::rbegin ( )
inline

Definition at line 309 of file Vec.h.

template<size_t D, class T = float>
const_reverse_iterator trimesh::Vec< D, T >::rbegin ( ) const
inline

Definition at line 313 of file Vec.h.

template<size_t D, class T = float>
reverse_iterator trimesh::Vec< D, T >::rend ( )
inline

Definition at line 321 of file Vec.h.

template<size_t D, class T = float>
const_reverse_iterator trimesh::Vec< D, T >::rend ( ) const
inline

Definition at line 325 of file Vec.h.

template<size_t D, class T = float>
Vec<D, T> trimesh::Vec< D, T >::shift ( int  n) const
inline

Definition at line 527 of file Vec.h.

template<size_t D, class T = float>
size_type trimesh::Vec< D, T >::size ( ) const
inline

Definition at line 335 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::sum ( ) const
inline

Definition at line 458 of file Vec.h.

template<size_t D, class T = float>
value_type trimesh::Vec< D, T >::sumabs ( ) const
inline

Definition at line 465 of file Vec.h.

template<size_t D, class T = float>
void trimesh::Vec< D, T >::swap ( Vec< D, T > &  x)
inline

Definition at line 430 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::x ( )
inline

Definition at line 194 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::x ( ) const
inline

Definition at line 198 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::y ( )
inline

Definition at line 203 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::y ( ) const
inline

Definition at line 207 of file Vec.h.

template<size_t D, class T = float>
reference trimesh::Vec< D, T >::z ( )
inline

Definition at line 212 of file Vec.h.

template<size_t D, class T = float>
const_reference trimesh::Vec< D, T >::z ( ) const
inline

Definition at line 216 of file Vec.h.

Member Data Documentation

template<size_t D, class T = float>
T trimesh::Vec< D, T >::v[D]
protected

Definition at line 121 of file Vec.h.


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


choreo_task_sequence_planner
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:03:15