Polyphase Game Engine
Loading...
Searching...
No Matches
IMGUIZMO_NAMESPACE::vec_t Struct Reference

Public Member Functions

void Lerp (const vec_t &v, float t)
 
void Set (float v)
 
void Set (float _x, float _y, float _z=0.f, float _w=0.f)
 
vec_toperator-= (const vec_t &v)
 
vec_toperator+= (const vec_t &v)
 
vec_toperator*= (const vec_t &v)
 
vec_toperator*= (float v)
 
vec_t operator* (float f) const
 
vec_t operator- () const
 
vec_t operator- (const vec_t &v) const
 
vec_t operator+ (const vec_t &v) const
 
vec_t operator* (const vec_t &v) const
 
const vec_toperator+ () const
 
float Length () const
 
float LengthSq () const
 
vec_t Normalize ()
 
vec_t Normalize (const vec_t &v)
 
vec_t Abs () const
 
void Cross (const vec_t &v)
 
void Cross (const vec_t &v1, const vec_t &v2)
 
float Dot (const vec_t &v) const
 
float Dot3 (const vec_t &v) const
 
void Transform (const matrix_t &matrix)
 
void Transform (const vec_t &s, const matrix_t &matrix)
 
void TransformVector (const matrix_t &matrix)
 
void TransformPoint (const matrix_t &matrix)
 
void TransformVector (const vec_t &v, const matrix_t &matrix)
 
void TransformPoint (const vec_t &v, const matrix_t &matrix)
 
float & operator[] (size_t index)
 
const float & operator[] (size_t index) const
 
bool operator!= (const vec_t &other) const
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Member Function Documentation

◆ Abs()

vec_t IMGUIZMO_NAMESPACE::vec_t::Abs ( ) const

◆ Cross() [1/2]

void IMGUIZMO_NAMESPACE::vec_t::Cross ( const vec_t v)
inline

◆ Cross() [2/2]

void IMGUIZMO_NAMESPACE::vec_t::Cross ( const vec_t v1,
const vec_t v2 
)
inline

◆ Dot()

float IMGUIZMO_NAMESPACE::vec_t::Dot ( const vec_t v) const
inline

◆ Dot3()

float IMGUIZMO_NAMESPACE::vec_t::Dot3 ( const vec_t v) const
inline

◆ Length()

float IMGUIZMO_NAMESPACE::vec_t::Length ( ) const
inline

◆ LengthSq()

float IMGUIZMO_NAMESPACE::vec_t::LengthSq ( ) const
inline

◆ Lerp()

void IMGUIZMO_NAMESPACE::vec_t::Lerp ( const vec_t v,
float  t 
)
inline

◆ Normalize() [1/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::Normalize ( )
inline

◆ Normalize() [2/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::Normalize ( const vec_t v)
inline

◆ operator!=()

bool IMGUIZMO_NAMESPACE::vec_t::operator!= ( const vec_t other) const
inline

◆ operator*() [1/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::operator* ( const vec_t v) const

◆ operator*() [2/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::operator* ( float  f) const

◆ operator*=() [1/2]

vec_t & IMGUIZMO_NAMESPACE::vec_t::operator*= ( const vec_t v)
inline

◆ operator*=() [2/2]

vec_t & IMGUIZMO_NAMESPACE::vec_t::operator*= ( float  v)
inline

◆ operator+() [1/2]

const vec_t & IMGUIZMO_NAMESPACE::vec_t::operator+ ( ) const
inline

◆ operator+() [2/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::operator+ ( const vec_t v) const

◆ operator+=()

vec_t & IMGUIZMO_NAMESPACE::vec_t::operator+= ( const vec_t v)
inline

◆ operator-() [1/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::operator- ( ) const

◆ operator-() [2/2]

vec_t IMGUIZMO_NAMESPACE::vec_t::operator- ( const vec_t v) const

◆ operator-=()

vec_t & IMGUIZMO_NAMESPACE::vec_t::operator-= ( const vec_t v)
inline

◆ operator[]() [1/2]

float & IMGUIZMO_NAMESPACE::vec_t::operator[] ( size_t  index)
inline

◆ operator[]() [2/2]

const float & IMGUIZMO_NAMESPACE::vec_t::operator[] ( size_t  index) const
inline

◆ Set() [1/2]

void IMGUIZMO_NAMESPACE::vec_t::Set ( float  _x,
float  _y,
float  _z = 0.f,
float  _w = 0.f 
)
inline

◆ Set() [2/2]

void IMGUIZMO_NAMESPACE::vec_t::Set ( float  v)
inline

◆ Transform() [1/2]

void IMGUIZMO_NAMESPACE::vec_t::Transform ( const matrix_t matrix)

◆ Transform() [2/2]

void IMGUIZMO_NAMESPACE::vec_t::Transform ( const vec_t s,
const matrix_t matrix 
)

◆ TransformPoint() [1/2]

void IMGUIZMO_NAMESPACE::vec_t::TransformPoint ( const matrix_t matrix)

◆ TransformPoint() [2/2]

void IMGUIZMO_NAMESPACE::vec_t::TransformPoint ( const vec_t v,
const matrix_t matrix 
)
inline

◆ TransformVector() [1/2]

void IMGUIZMO_NAMESPACE::vec_t::TransformVector ( const matrix_t matrix)

◆ TransformVector() [2/2]

void IMGUIZMO_NAMESPACE::vec_t::TransformVector ( const vec_t v,
const matrix_t matrix 
)
inline

Member Data Documentation

◆ w

float IMGUIZMO_NAMESPACE::vec_t::w

◆ x

float IMGUIZMO_NAMESPACE::vec_t::x

◆ y

float IMGUIZMO_NAMESPACE::vec_t::y

◆ z

float IMGUIZMO_NAMESPACE::vec_t::z

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