NW4F Sys
Loading...
Searching...
No Matches
nw::math::VEC4 Struct Reference

#include <math_Vector4.h>

Inherits nw::math::VEC4_.

Public Types

typedef VEC4 self_type
typedef f32 value_type

Public Member Functions

 VEC4 ()
 VEC4 (const f32 *p)
 VEC4 (const VEC4_ &v)
 VEC4 (f32 fx, f32 fy, f32 fz, f32 fw)
 VEC4 (const VEC3 &v)
 operator f32 * ()
 operator const f32 * () const
f32 * ToF32 ()
const f32 * ToF32 () const
template<typename ToPtr>
ToPtr Cast ()
template<typename ToPtr>
ToPtr Cast () const
self_typeoperator+= (const self_type &rhs)
self_typeoperator-= (const self_type &rhs)
self_typeoperator*= (f32 f)
self_typeoperator/= (f32 f)
self_type operator+ () const
self_type operator- () const
self_type operator+ (const self_type &rhs) const
self_type operator- (const self_type &rhs) const
self_type operator* (f32 f) const
self_type operator/ (f32 f) const
self_typeLerp (const VEC4 &lhs, const VEC4 &rhs, f32 t)
f32 Dot (const VEC4 &vec) const
f32 LengthSquare () const
f32 Length () const
self_typeNormalize ()
self_typeSetNormalize (const VEC4 &src)
self_typeSafeNormalize (const VEC4 &alt)
self_typeSetSafeNormalize (const VEC4 &src, const VEC4 &alt)
f32 DistanceSquare (const VEC4 &vec)
self_typeSetMaximize (const VEC4 &lhs, const VEC4 &rhs)
self_typeSetMinimize (const VEC4 &lhs, const VEC4 &rhs)
NW_MATH_INLINE self_typeSetTransform (const MTX34 &pM, const VEC4 &src)
self_typeTransform (const MTX34 &pM)
NW_MATH_INLINE self_typeSetTransform (const MTX44 &pM, const VEC4 &src)
self_typeTransform (const MTX44 &pM)
void Set (f32 fx, f32 fy, f32 fz, f32 fw)
bool operator== (const self_type &rhs) const
bool operator!= (const self_type &rhs) const
bool IsZero () const
bool IsZeroWOne () const

Static Public Member Functions

static const VEC4Zero ()
static const VEC4ZeroWOne ()

Static Public Attributes

static const int DIMENSION = 4

Additional Inherited Members

Public Attributes inherited from nw::math::VEC4_
f32 x
f32 y
f32 z
f32 w

Member Typedef Documentation

◆ self_type

◆ value_type

Constructor & Destructor Documentation

◆ VEC4() [1/5]

nw::math::VEC4::VEC4 ( )
inline

◆ VEC4() [2/5]

nw::math::VEC4::VEC4 ( const f32 * p)
inlineexplicit

◆ VEC4() [3/5]

nw::math::VEC4::VEC4 ( const VEC4_ & v)
inlineexplicit

◆ VEC4() [4/5]

nw::math::VEC4::VEC4 ( f32 fx,
f32 fy,
f32 fz,
f32 fw )
inline

◆ VEC4() [5/5]

nw::math::VEC4::VEC4 ( const VEC3 & v)
inlineexplicit

Member Function Documentation

◆ Zero()

const VEC4 & nw::math::VEC4::Zero ( )
inlinestatic

◆ ZeroWOne()

const VEC4 & nw::math::VEC4::ZeroWOne ( )
inlinestatic

◆ operator f32 *()

nw::math::VEC4::operator f32 * ( )
inline

◆ operator const f32 *()

nw::math::VEC4::operator const f32 * ( ) const
inline

◆ ToF32() [1/2]

f32 * nw::math::VEC4::ToF32 ( )
inline

◆ ToF32() [2/2]

const f32 * nw::math::VEC4::ToF32 ( ) const
inline

◆ Cast() [1/2]

template<typename ToPtr>
ToPtr nw::math::VEC4::Cast ( )
inline

◆ Cast() [2/2]

template<typename ToPtr>
ToPtr nw::math::VEC4::Cast ( ) const
inline

◆ operator+=()

self_type & nw::math::VEC4::operator+= ( const self_type & rhs)
inline

◆ operator-=()

self_type & nw::math::VEC4::operator-= ( const self_type & rhs)
inline

◆ operator*=()

self_type & nw::math::VEC4::operator*= ( f32 f)
inline

◆ operator/=()

self_type & nw::math::VEC4::operator/= ( f32 f)
inline

◆ operator+() [1/2]

self_type nw::math::VEC4::operator+ ( ) const
inline

◆ operator-() [1/2]

self_type nw::math::VEC4::operator- ( ) const
inline

◆ operator+() [2/2]

self_type nw::math::VEC4::operator+ ( const self_type & rhs) const
inline

◆ operator-() [2/2]

self_type nw::math::VEC4::operator- ( const self_type & rhs) const
inline

◆ operator*()

self_type nw::math::VEC4::operator* ( f32 f) const
inline

◆ operator/()

self_type nw::math::VEC4::operator/ ( f32 f) const
inline

◆ Lerp()

self_type & nw::math::VEC4::Lerp ( const VEC4 & lhs,
const VEC4 & rhs,
f32 t )
inline

◆ Dot()

f32 nw::math::VEC4::Dot ( const VEC4 & vec) const
inline

◆ LengthSquare()

f32 nw::math::VEC4::LengthSquare ( ) const
inline

◆ Length()

f32 nw::math::VEC4::Length ( ) const
inline

◆ Normalize()

self_type & nw::math::VEC4::Normalize ( )
inline

◆ SetNormalize()

self_type & nw::math::VEC4::SetNormalize ( const VEC4 & src)
inline

◆ SafeNormalize()

self_type & nw::math::VEC4::SafeNormalize ( const VEC4 & alt)
inline

◆ SetSafeNormalize()

self_type & nw::math::VEC4::SetSafeNormalize ( const VEC4 & src,
const VEC4 & alt )
inline

◆ DistanceSquare()

f32 nw::math::VEC4::DistanceSquare ( const VEC4 & vec)
inline

◆ SetMaximize()

self_type & nw::math::VEC4::SetMaximize ( const VEC4 & lhs,
const VEC4 & rhs )
inline

◆ SetMinimize()

self_type & nw::math::VEC4::SetMinimize ( const VEC4 & lhs,
const VEC4 & rhs )
inline

◆ SetTransform() [1/2]

NW_MATH_INLINE VEC4 & nw::math::VEC4::SetTransform ( const MTX34 & pM,
const VEC4 & src )

◆ Transform() [1/2]

self_type & nw::math::VEC4::Transform ( const MTX34 & pM)
inline

◆ SetTransform() [2/2]

NW_MATH_INLINE VEC4 & nw::math::VEC4::SetTransform ( const MTX44 & pM,
const VEC4 & src )

◆ Transform() [2/2]

self_type & nw::math::VEC4::Transform ( const MTX44 & pM)
inline

◆ Set()

void nw::math::VEC4::Set ( f32 fx,
f32 fy,
f32 fz,
f32 fw )
inline

◆ operator==()

bool nw::math::VEC4::operator== ( const self_type & rhs) const
inline

◆ operator!=()

bool nw::math::VEC4::operator!= ( const self_type & rhs) const
inline

◆ IsZero()

bool nw::math::VEC4::IsZero ( ) const
inline

◆ IsZeroWOne()

bool nw::math::VEC4::IsZeroWOne ( ) const
inline

Member Data Documentation

◆ DIMENSION

const int nw::math::VEC4::DIMENSION = 4
static