PeriDyno 1.0.0
Loading...
Searching...
No Matches
vgm::Vec4 Class Reference

#include <vgMath.h>

Public Member Functions

 Vec4 ()=default
 
 Vec4 (const VEC4_T &)=default
 
 Vec4 (T s)
 
 Vec4 (T x, T y, T z, T w)
 
 Vec4 (const VEC3_T &v, T s)
 
 Vec4 (T s, const VEC3_T &v)
 
Vec4 operator- () const
 
Vec4operator+= (const Vec4 &v)
 
Vec4operator-= (const Vec4 &v)
 
Vec4operator*= (const Vec4 &v)
 
Vec4operator/= (const Vec4 &v)
 
Vec4operator*= (T s)
 
Vec4operator/= (T s)
 
Vec4 operator+ (const Vec4 &v) const
 
Vec4 operator- (const Vec4 &v) const
 
Vec4 operator* (const Vec4 &v) const
 
Vec4 operator/ (const Vec4 &v) const
 
Vec4 operator* (T s) const
 
Vec4 operator/ (T s) const
 
const Toperator[] (int i) const
 
Toperator[] (int i)
 
 operator const T * () const
 
 operator T* ()
 

Public Attributes

union { 
 
   struct { 
 
      T   x 
 
      T   y 
 
      T   z 
 
      T   w 
 
   }  
 
   struct { 
 
      T   r 
 
      T   g 
 
      T   b 
 
      T   a 
 
   }  
 
};  
 

Detailed Description

Definition at line 185 of file vgMath.h.

Constructor & Destructor Documentation

◆ Vec4() [1/6]

vgm::Vec4::Vec4 ( )
default
Here is the caller graph for this function:

◆ Vec4() [2/6]

vgm::Vec4::Vec4 ( const VEC4_T & )
default

◆ Vec4() [3/6]

vgm::Vec4::Vec4 ( T s)
inlineexplicit

Definition at line 194 of file vgMath.h.

◆ Vec4() [4/6]

vgm::Vec4::Vec4 ( T x,
T y,
T z,
T w )
inline

Definition at line 195 of file vgMath.h.

◆ Vec4() [5/6]

vgm::Vec4::Vec4 ( const VEC3_T & v,
T s )
inlineexplicit

Definition at line 196 of file vgMath.h.

◆ Vec4() [6/6]

vgm::Vec4::Vec4 ( T s,
const VEC3_T & v )
inlineexplicit

Definition at line 197 of file vgMath.h.

Member Function Documentation

◆ operator const T *()

vgm::Vec4::operator const T * ( ) const
inlineexplicit

Definition at line 219 of file vgMath.h.

◆ operator T*()

vgm::Vec4::operator T* ( )
inlineexplicit

Definition at line 220 of file vgMath.h.

◆ operator*() [1/2]

Vec4 vgm::Vec4::operator* ( const Vec4 & v) const
inline

Definition at line 211 of file vgMath.h.

Here is the call graph for this function:

◆ operator*() [2/2]

Vec4 vgm::Vec4::operator* ( T s) const
inline

Definition at line 213 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

Vec4 & vgm::Vec4::operator*= ( const Vec4 & v)
inline

Definition at line 204 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [2/2]

Vec4 & vgm::Vec4::operator*= ( T s)
inline

Definition at line 206 of file vgMath.h.

Here is the call graph for this function:

◆ operator+()

Vec4 vgm::Vec4::operator+ ( const Vec4 & v) const
inline

Definition at line 209 of file vgMath.h.

Here is the call graph for this function:

◆ operator+=()

Vec4 & vgm::Vec4::operator+= ( const Vec4 & v)
inline

Definition at line 202 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [1/2]

Vec4 vgm::Vec4::operator- ( ) const
inline

Definition at line 200 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [2/2]

Vec4 vgm::Vec4::operator- ( const Vec4 & v) const
inline

Definition at line 210 of file vgMath.h.

Here is the call graph for this function:

◆ operator-=()

Vec4 & vgm::Vec4::operator-= ( const Vec4 & v)
inline

Definition at line 203 of file vgMath.h.

Here is the call graph for this function:

◆ operator/() [1/2]

Vec4 vgm::Vec4::operator/ ( const Vec4 & v) const
inline

Definition at line 212 of file vgMath.h.

Here is the call graph for this function:

◆ operator/() [2/2]

Vec4 vgm::Vec4::operator/ ( T s) const
inline

Definition at line 214 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [1/2]

Vec4 & vgm::Vec4::operator/= ( const Vec4 & v)
inline

Definition at line 205 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [2/2]

Vec4 & vgm::Vec4::operator/= ( T s)
inline

Definition at line 207 of file vgMath.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

T & vgm::Vec4::operator[] ( int i)
inline

Definition at line 217 of file vgMath.h.

◆ operator[]() [2/2]

const T & vgm::Vec4::operator[] ( int i) const
inline

Definition at line 216 of file vgMath.h.

Member Data Documentation

◆ [union]

union { ... } vgm::Vec4

◆ a

T vgm::Vec4::a

Definition at line 189 of file vgMath.h.

◆ b

T vgm::Vec4::b

Definition at line 189 of file vgMath.h.

◆ g

T vgm::Vec4::g

Definition at line 189 of file vgMath.h.

◆ r

T vgm::Vec4::r

Definition at line 189 of file vgMath.h.

◆ w

T vgm::Vec4::w

Definition at line 188 of file vgMath.h.

◆ x

T vgm::Vec4::x

Definition at line 188 of file vgMath.h.

◆ y

T vgm::Vec4::y

Definition at line 188 of file vgMath.h.

◆ z

T vgm::Vec4::z

Definition at line 188 of file vgMath.h.


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