Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SbVec3< Type > Class Template Reference

#include <SbBox3.h>

Public Member Functions

 SbVec3 (void)
 
 SbVec3 (const Type v[3])
 
 SbVec3 (const Type x, const Type y, const Type z)
 
SbVec3< Type > & setValue (const Type v[3])
 
SbVec3< Type > & setValue (const Type x, const Type y, const Type z)
 
const Type * getValue (void) const
 
void getValue (Type &x, Type &y, Type &z) const
 
SbVec3< Type > cross (const SbVec3< Type > &v) const
 
Type dot (const SbVec3< Type > &v) const
 
Type sqrLength (void) const
 
double length (void) const
 
double normalize (void)
 
void negate (void)
 
SbVec3< Type > & operator*= (const Type d)
 
SbVec3< Type > & operator/= (const Type d)
 
SbVec3< Type > & operator+= (const SbVec3< Type > &u)
 
SbVec3< Type > & operator-= (const SbVec3< Type > &u)
 
SbVec3< Type > operator- (void) const
 
SbVec3< Type > operator+ (const SbVec3< Type > &v) const
 
SbVec3< Type > operator- (const SbVec3< Type > &v) const
 
SbVec3< Type > operator* (Type f) const
 
SbVec3< Type > operator/ (Type f) const
 
Type & operator[] (int idx)
 
const Type & operator[] (int idx) const
 

Constructor & Destructor Documentation

◆ SbVec3() [1/3]

template<class Type>
SbVec3< Type >::SbVec3 ( void  )
inline

◆ SbVec3() [2/3]

template<class Type>
SbVec3< Type >::SbVec3 ( const Type  v[3])
inline

◆ SbVec3() [3/3]

template<class Type>
SbVec3< Type >::SbVec3 ( const Type  x,
const Type  y,
const Type  z 
)
inline

Member Function Documentation

◆ cross()

template<class Type>
SbVec3<Type> SbVec3< Type >::cross ( const SbVec3< Type > &  v) const
inline

◆ dot()

template<class Type>
Type SbVec3< Type >::dot ( const SbVec3< Type > &  v) const
inline

◆ getValue() [1/2]

template<class Type>
const Type* SbVec3< Type >::getValue ( void  ) const
inline

◆ getValue() [2/2]

template<class Type>
void SbVec3< Type >::getValue ( Type &  x,
Type &  y,
Type &  z 
) const
inline

◆ length()

template<class Type>
double SbVec3< Type >::length ( void  ) const
inline

◆ negate()

template<class Type>
void SbVec3< Type >::negate ( void  )
inline

◆ normalize()

template<class Type>
double SbVec3< Type >::normalize ( void  )
inline

◆ operator*()

template<class Type>
SbVec3<Type> SbVec3< Type >::operator* ( Type  f) const
inline

◆ operator*=()

template<class Type>
SbVec3<Type>& SbVec3< Type >::operator*= ( const Type  d)
inline

◆ operator+()

template<class Type>
SbVec3<Type> SbVec3< Type >::operator+ ( const SbVec3< Type > &  v) const
inline

◆ operator+=()

template<class Type>
SbVec3<Type>& SbVec3< Type >::operator+= ( const SbVec3< Type > &  u)
inline

◆ operator-() [1/2]

template<class Type>
SbVec3<Type> SbVec3< Type >::operator- ( void  ) const
inline

◆ operator-() [2/2]

template<class Type>
SbVec3<Type> SbVec3< Type >::operator- ( const SbVec3< Type > &  v) const
inline

◆ operator-=()

template<class Type>
SbVec3<Type>& SbVec3< Type >::operator-= ( const SbVec3< Type > &  u)
inline

◆ operator/()

template<class Type>
SbVec3<Type> SbVec3< Type >::operator/ ( Type  f) const
inline

◆ operator/=()

template<class Type>
SbVec3<Type>& SbVec3< Type >::operator/= ( const Type  d)
inline

◆ operator[]() [1/2]

template<class Type>
Type& SbVec3< Type >::operator[] ( int  idx)
inline

◆ operator[]() [2/2]

template<class Type>
const Type& SbVec3< Type >::operator[] ( int  idx) const
inline

◆ setValue() [1/2]

template<class Type>
SbVec3<Type>& SbVec3< Type >::setValue ( const Type  v[3])
inline

◆ setValue() [2/2]

template<class Type>
SbVec3<Type>& SbVec3< Type >::setValue ( const Type  x,
const Type  y,
const Type  z 
)
inline

◆ sqrLength()

template<class Type>
Type SbVec3< Type >::sqrLength ( void  ) const
inline

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