nux-0.9.48

nux::Vec4< T > Class Template Reference

#include <NuxCore/Math/Vector4.h>

Public Member Functions

 Vec4 ()
 ~Vec4 ()
 Vec4 (const T &, const T &, const T &, const T &)
 Vec4 (const Vec4< T > &)
Vec4< T > & operator= (const Vec4< T > &)
t_bool operator== (const Vec4< T > &) const
t_bool operator!= (const Vec4< T > &) const
Vec4< T > operator+ (const Vec4< T > &) const
Vec4< T > operator* (const Vec4< T > &) const
Vec4< T > operator- (const Vec4< T > &) const
Vec4< T > operator- () const
Vec4< T > & operator*= (const Vec4< T > &)
Vec4< T > & operator+= (const Vec4< T > &)
Vec4< T > & operator-= (const Vec4< T > &)
Vec4< T > operator/ (const T &) const
Vec4< T > operator* (const T &) const
Vec4< T > & operator/= (const T &)
Vec4< T > & operator*= (const T &)
T & operator[] (int i)
 element access
const T & operator[] (int i) const
 element access (const)
void divide_xyz_by_w ()

Data Fields

x
y
z
w

Friends

template<typename U >
Vec4< U > operator* (const U &, const Vec4< U > &)

template<typename T>
class nux::Vec4< T >


Constructor & Destructor Documentation

template<typename T >
nux::Vec4< T >::Vec4 ( ) [inline]
template<typename T >
nux::Vec4< T >::~Vec4 ( ) [inline]
template<typename T>
nux::Vec4< T >::Vec4 ( const T &  fx,
const T &  fy,
const T &  fz,
const T &  fw 
) [inline]
template<typename T>
nux::Vec4< T >::Vec4 ( const Vec4< T > &  v) [inline]

Member Function Documentation

template<typename T >
void nux::Vec4< T >::divide_xyz_by_w ( )
template<typename T>
t_bool nux::Vec4< T >::operator!= ( const Vec4< T > &  v) const [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator* ( const Vec4< T > &  v) const [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator* ( const T &  f) const [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator*= ( const Vec4< T > &  v) [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator*= ( const T &  f) [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator+ ( const Vec4< T > &  v) const [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator+= ( const Vec4< T > &  v) [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator- ( const Vec4< T > &  v) const [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator- ( ) const [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator-= ( const Vec4< T > &  v) [inline]
template<typename T>
Vec4< T > nux::Vec4< T >::operator/ ( const T &  f) const [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator/= ( const T &  f) [inline]
template<typename T>
Vec4< T > & nux::Vec4< T >::operator= ( const Vec4< T > &  v) [inline]
template<typename T>
t_bool nux::Vec4< T >::operator== ( const Vec4< T > &  v) const [inline]
template<typename T >
const T & nux::Vec4< T >::operator[] ( int  i) const [inline]

element access (const)

template<typename T >
T & nux::Vec4< T >::operator[] ( int  i) [inline]

element access


Friends And Related Function Documentation

template<typename T>
template<typename U >
Vec4<U> operator* ( const U &  f,
const Vec4< U > &  v 
) [friend]

Field Documentation


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