liballofw
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
allofw::Vector3_< T > Struct Template Reference

#include <vector.h>

Public Types

typedef T number_t
 

Public Member Functions

 Vector3_ ()=default
 
template<typename number_from_t >
 Vector3_ (const Vector2_< number_from_t > &v)
 
template<typename number_from_t >
 Vector3_ (const Vector3_< number_from_t > &v)
 
 Vector3_ (number_t v)
 
 Vector3_ (number_t x_, number_t y_, number_t z_)
 
template<typename OtherT >
 Vector3_ (const OtherT &other)
 
Vector3_operator+= (const Vector3_ &v)
 
Vector3_operator-= (const Vector3_ &v)
 
Vector3_operator*= (number_t s)
 
Vector3_operator/= (number_t s)
 
Vector3_ operator+ (const Vector3_ &v) const
 
Vector3_ operator- (const Vector3_ &v) const
 
Vector3_ operator- () const
 
Vector3_ operator* (number_t s) const
 
Vector3_ operator/ (number_t s) const
 
number_t dot (const Vector3_ &v) const
 
number_t len2 () const
 
number_t len () const
 
Vector3_ unit () const
 
Vector3_ cross (const Vector3_ &v) const
 
Vector2_< number_txy () const
 
number_tdata ()
 
const number_tdata () const
 
int shape () const
 

Static Public Member Functions

static Vector3_ NaN ()
 

Public Attributes

number_t x
 
number_t y
 
number_t z
 

Static Public Attributes

static const size_t size = 3
 

Friends

Vector3_ operator* (number_t s, const Vector3_ &v)
 

Member Typedef Documentation

template<typename T>
typedef T allofw::Vector3_< T >::number_t

Constructor & Destructor Documentation

template<typename T>
allofw::Vector3_< T >::Vector3_ ( )
default
template<typename T>
template<typename number_from_t >
allofw::Vector3_< T >::Vector3_ ( const Vector2_< number_from_t > &  v)
inline
template<typename T>
template<typename number_from_t >
allofw::Vector3_< T >::Vector3_ ( const Vector3_< number_from_t > &  v)
inline
template<typename T>
allofw::Vector3_< T >::Vector3_ ( number_t  v)
inline
template<typename T>
allofw::Vector3_< T >::Vector3_ ( number_t  x_,
number_t  y_,
number_t  z_ 
)
inline
template<typename T>
template<typename OtherT >
allofw::Vector3_< T >::Vector3_ ( const OtherT &  other)
inline

Member Function Documentation

template<typename T>
Vector3_ allofw::Vector3_< T >::cross ( const Vector3_< T > &  v) const
inline
template<typename T>
number_t* allofw::Vector3_< T >::data ( )
inline
template<typename T>
const number_t* allofw::Vector3_< T >::data ( ) const
inline
template<typename T>
number_t allofw::Vector3_< T >::dot ( const Vector3_< T > &  v) const
inline
template<typename T>
number_t allofw::Vector3_< T >::len ( ) const
inline
template<typename T>
number_t allofw::Vector3_< T >::len2 ( ) const
inline
template<typename T>
static Vector3_ allofw::Vector3_< T >::NaN ( )
inlinestatic
template<typename T>
Vector3_ allofw::Vector3_< T >::operator* ( number_t  s) const
inline
template<typename T>
Vector3_& allofw::Vector3_< T >::operator*= ( number_t  s)
inline
template<typename T>
Vector3_ allofw::Vector3_< T >::operator+ ( const Vector3_< T > &  v) const
inline
template<typename T>
Vector3_& allofw::Vector3_< T >::operator+= ( const Vector3_< T > &  v)
inline
template<typename T>
Vector3_ allofw::Vector3_< T >::operator- ( const Vector3_< T > &  v) const
inline
template<typename T>
Vector3_ allofw::Vector3_< T >::operator- ( ) const
inline
template<typename T>
Vector3_& allofw::Vector3_< T >::operator-= ( const Vector3_< T > &  v)
inline
template<typename T>
Vector3_ allofw::Vector3_< T >::operator/ ( number_t  s) const
inline
template<typename T>
Vector3_& allofw::Vector3_< T >::operator/= ( number_t  s)
inline
template<typename T>
int allofw::Vector3_< T >::shape ( ) const
inline
template<typename T>
Vector3_ allofw::Vector3_< T >::unit ( ) const
inline
template<typename T>
Vector2_<number_t> allofw::Vector3_< T >::xy ( ) const
inline

Friends And Related Function Documentation

template<typename T>
Vector3_ operator* ( number_t  s,
const Vector3_< T > &  v 
)
friend

Member Data Documentation

template<typename T>
const size_t allofw::Vector3_< T >::size = 3
static
template<typename T>
number_t allofw::Vector3_< T >::x
template<typename T>
number_t allofw::Vector3_< T >::y
template<typename T>
number_t allofw::Vector3_< T >::z

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