GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::VectorD< ScalarT, dimension_t > Class Template Reference

#include <vector_d.h>

Public Types

typedef ScalarT Scalar
typedef VectorD< ScalarScalar, dimension_t > Self
typedef ScalarT CoefficientType

Public Member Functions

 VectorD ()
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1)
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1, const ScalarScalar &c2)
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1, const ScalarScalar &c2, const ScalarScalar &c3)
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1, const ScalarScalar &c2, const ScalarScalar &c3, const ScalarScalar &c4)
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1, const ScalarScalar &c2, const ScalarScalar &c3, const ScalarScalar &c4, const ScalarScalar &c5)
 VectorD (const ScalarScalar &c0, const ScalarScalar &c1, const ScalarScalar &c2, const ScalarScalar &c3, const ScalarScalar &c4, const ScalarScalar &c5, const ScalarScalar &c6)
 VectorD (const Self &o)
template<class OtherScalarT, int other_dimension_t>
 VectorD (const VectorD< OtherScalarT, other_dimension_t > &src_vector)
ScalarScalar & operator[] (int i)
const ScalarScalar & operator[] (int i) const
ScalarScalar & operator() (int i)
const ScalarScalar & operator() (int i) const
Self operator- () const
Self operator+ (const Self &o) const
Self operator- (const Self &o) const
Self operator* (const Self &o) const
Self & operator+= (const Self &o)
Self & operator-= (const Self &o)
Self & operator*= (const Self &o)
Self operator* (const ScalarScalar &o) const
Self operator/ (const ScalarScalar &o) const
Self operator+ (const ScalarScalar &o) const
Self operator- (const ScalarScalar &o) const
bool operator== (const Self &o) const
bool operator!= (const Self &x) const
bool operator< (const Self &x) const
ScalarScalar SquaredNorm () const
ScalarScalar AbsSum () const
ScalarScalar Dot (const Self &o) const
void Normalize ()
Self GetNormalized () const
const ScalarScalar & MaxCoeff () const
const ScalarScalar & MinCoeff () const
ScalarScalar * data ()
const ScalarScalar * data () const

Static Public Attributes

static constexpr int dimension = dimension_t

Member Typedef Documentation

◆ CoefficientType

template<class ScalarT, int dimension_t>
typedef ScalarT draco::VectorD< ScalarT, dimension_t >::CoefficientType

◆ Scalar

template<class ScalarT, int dimension_t>
typedef ScalarT draco::VectorD< ScalarT, dimension_t >::Scalar

◆ Self

template<class ScalarT, int dimension_t>
typedef VectorD<ScalarScalar, dimension_t> draco::VectorD< ScalarT, dimension_t >::Self

Constructor & Destructor Documentation

◆ VectorD() [1/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( )
inline

◆ VectorD() [2/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1 )
inline

◆ VectorD() [3/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1,
const ScalarScalar & c2 )
inline

◆ VectorD() [4/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1,
const ScalarScalar & c2,
const ScalarScalar & c3 )
inline

◆ VectorD() [5/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1,
const ScalarScalar & c2,
const ScalarScalar & c3,
const ScalarScalar & c4 )
inline

◆ VectorD() [6/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1,
const ScalarScalar & c2,
const ScalarScalar & c3,
const ScalarScalar & c4,
const ScalarScalar & c5 )
inline

◆ VectorD() [7/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const ScalarScalar & c0,
const ScalarScalar & c1,
const ScalarScalar & c2,
const ScalarScalar & c3,
const ScalarScalar & c4,
const ScalarScalar & c5,
const ScalarScalar & c6 )
inline

◆ VectorD() [8/9]

template<class ScalarT, int dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const Self & o)
inline

◆ VectorD() [9/9]

template<class ScalarT, int dimension_t>
template<class OtherScalarT, int other_dimension_t>
draco::VectorD< ScalarT, dimension_t >::VectorD ( const VectorD< OtherScalarT, other_dimension_t > & src_vector)
inlineexplicit

Member Function Documentation

◆ AbsSum()

template<class ScalarT, int dimension_t>
ScalarScalar draco::VectorD< ScalarT, dimension_t >::AbsSum ( ) const
inline
Here is the caller graph for this function:

◆ data() [1/2]

template<class ScalarT, int dimension_t>
ScalarScalar * draco::VectorD< ScalarT, dimension_t >::data ( )
inline
Here is the caller graph for this function:

◆ data() [2/2]

template<class ScalarT, int dimension_t>
const ScalarScalar * draco::VectorD< ScalarT, dimension_t >::data ( ) const
inline

◆ Dot()

template<class ScalarT, int dimension_t>
ScalarScalar draco::VectorD< ScalarT, dimension_t >::Dot ( const Self & o) const
inline
Here is the caller graph for this function:

◆ GetNormalized()

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::GetNormalized ( ) const
inline

◆ MaxCoeff()

template<class ScalarT, int dimension_t>
const ScalarScalar & draco::VectorD< ScalarT, dimension_t >::MaxCoeff ( ) const
inline

◆ MinCoeff()

template<class ScalarT, int dimension_t>
const ScalarScalar & draco::VectorD< ScalarT, dimension_t >::MinCoeff ( ) const
inline

◆ Normalize()

template<class ScalarT, int dimension_t>
void draco::VectorD< ScalarT, dimension_t >::Normalize ( )
inline

◆ operator!=()

template<class ScalarT, int dimension_t>
bool draco::VectorD< ScalarT, dimension_t >::operator!= ( const Self & x) const
inline

◆ operator()() [1/2]

template<class ScalarT, int dimension_t>
ScalarScalar & draco::VectorD< ScalarT, dimension_t >::operator() ( int i)
inline

◆ operator()() [2/2]

template<class ScalarT, int dimension_t>
const ScalarScalar & draco::VectorD< ScalarT, dimension_t >::operator() ( int i) const
inline

◆ operator*() [1/2]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator* ( const ScalarScalar & o) const
inline

◆ operator*() [2/2]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator* ( const Self & o) const
inline

◆ operator*=()

template<class ScalarT, int dimension_t>
Self & draco::VectorD< ScalarT, dimension_t >::operator*= ( const Self & o)
inline

◆ operator+() [1/2]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator+ ( const ScalarScalar & o) const
inline

◆ operator+() [2/2]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator+ ( const Self & o) const
inline

◆ operator+=()

template<class ScalarT, int dimension_t>
Self & draco::VectorD< ScalarT, dimension_t >::operator+= ( const Self & o)
inline

◆ operator-() [1/3]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator- ( ) const
inline

◆ operator-() [2/3]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator- ( const ScalarScalar & o) const
inline

◆ operator-() [3/3]

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator- ( const Self & o) const
inline

◆ operator-=()

template<class ScalarT, int dimension_t>
Self & draco::VectorD< ScalarT, dimension_t >::operator-= ( const Self & o)
inline

◆ operator/()

template<class ScalarT, int dimension_t>
Self draco::VectorD< ScalarT, dimension_t >::operator/ ( const ScalarScalar & o) const
inline

◆ operator<()

template<class ScalarT, int dimension_t>
bool draco::VectorD< ScalarT, dimension_t >::operator< ( const Self & x) const
inline

◆ operator==()

template<class ScalarT, int dimension_t>
bool draco::VectorD< ScalarT, dimension_t >::operator== ( const Self & o) const
inline

◆ operator[]() [1/2]

template<class ScalarT, int dimension_t>
ScalarScalar & draco::VectorD< ScalarT, dimension_t >::operator[] ( int i)
inline

◆ operator[]() [2/2]

template<class ScalarT, int dimension_t>
const ScalarScalar & draco::VectorD< ScalarT, dimension_t >::operator[] ( int i) const
inline

◆ SquaredNorm()

template<class ScalarT, int dimension_t>
ScalarScalar draco::VectorD< ScalarT, dimension_t >::SquaredNorm ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ dimension

template<class ScalarT, int dimension_t>
int draco::VectorD< ScalarT, dimension_t >::dimension = dimension_t
staticconstexpr

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