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

#include <vgMath.h>

Public Member Functions

 Vec3 ()=default
 
 Vec3 (const VEC3_T &)=default
 
 Vec3 (T s)
 
 Vec3 (T x, T y, T z)
 
 Vec3 (T s, const VEC2_T &v)
 
 Vec3 (const VEC2_T &v, T s)
 
 Vec3 (const VEC4_T &v)
 
Vec3 operator- () const
 
Vec3operator+= (const Vec3 &v)
 
Vec3operator-= (const Vec3 &v)
 
Vec3operator*= (const Vec3 &v)
 
Vec3operator/= (const Vec3 &v)
 
Vec3operator*= (T s)
 
Vec3operator/= (T s)
 
Vec3 operator+ (const Vec3 &v) const
 
Vec3 operator- (const Vec3 &v) const
 
Vec3 operator* (const Vec3 &v) const
 
Vec3 operator/ (const Vec3 &v) const
 
Vec3 operator* (T s) const
 
Vec3 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 
 
   }  
 
   struct { 
 
      T   r 
 
      T   g 
 
      T   b 
 
   }  
 
};  
 

Detailed Description

Definition at line 146 of file vgMath.h.

Constructor & Destructor Documentation

◆ Vec3() [1/7]

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

◆ Vec3() [2/7]

vgm::Vec3::Vec3 ( const VEC3_T & )
default

◆ Vec3() [3/7]

vgm::Vec3::Vec3 ( T s)
inlineexplicit

Definition at line 155 of file vgMath.h.

◆ Vec3() [4/7]

vgm::Vec3::Vec3 ( T x,
T y,
T z )
inline

Definition at line 156 of file vgMath.h.

◆ Vec3() [5/7]

vgm::Vec3::Vec3 ( T s,
const VEC2_T & v )
inlineexplicit

Definition at line 157 of file vgMath.h.

◆ Vec3() [6/7]

vgm::Vec3::Vec3 ( const VEC2_T & v,
T s )
inlineexplicit

Definition at line 158 of file vgMath.h.

◆ Vec3() [7/7]

vgm::Vec3::Vec3 ( const VEC4_T & v)

Member Function Documentation

◆ operator const T *()

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

Definition at line 180 of file vgMath.h.

◆ operator T*()

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

Definition at line 181 of file vgMath.h.

◆ operator*() [1/2]

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

Definition at line 172 of file vgMath.h.

Here is the call graph for this function:

◆ operator*() [2/2]

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

Definition at line 174 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

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

Definition at line 165 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [2/2]

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

Definition at line 167 of file vgMath.h.

Here is the call graph for this function:

◆ operator+()

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

Definition at line 170 of file vgMath.h.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 163 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [1/2]

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

Definition at line 161 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [2/2]

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

Definition at line 171 of file vgMath.h.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 164 of file vgMath.h.

Here is the call graph for this function:

◆ operator/() [1/2]

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

Definition at line 173 of file vgMath.h.

Here is the call graph for this function:

◆ operator/() [2/2]

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

Definition at line 175 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [1/2]

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

Definition at line 166 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [2/2]

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

Definition at line 168 of file vgMath.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

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

Definition at line 178 of file vgMath.h.

◆ operator[]() [2/2]

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

Definition at line 177 of file vgMath.h.

Member Data Documentation

◆ [union]

union { ... } vgm::Vec3

◆ b

T vgm::Vec3::b

Definition at line 150 of file vgMath.h.

◆ g

T vgm::Vec3::g

Definition at line 150 of file vgMath.h.

◆ r

T vgm::Vec3::r

Definition at line 150 of file vgMath.h.

◆ x

T vgm::Vec3::x

Definition at line 149 of file vgMath.h.

◆ y

T vgm::Vec3::y

Definition at line 149 of file vgMath.h.

◆ z

T vgm::Vec3::z

Definition at line 149 of file vgMath.h.


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