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

#include <vector.h>

Public Types

typedef T number_t
 

Public Member Functions

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

Static Public Member Functions

static Vector4_ NaN ()
 

Public Attributes

number_t x
 
number_t y
 
number_t z
 
number_t w
 

Static Public Attributes

static const size_t size = 4
 

Friends

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Friends And Related Function Documentation

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

Member Data Documentation

template<typename T>
const size_t allofw::Vector4_< T >::size = 4
static
template<typename T>
number_t allofw::Vector4_< T >::w
template<typename T>
number_t allofw::Vector4_< T >::x
template<typename T>
number_t allofw::Vector4_< T >::y
template<typename T>
number_t allofw::Vector4_< T >::z

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