Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Public Attributes | List of all members
core_mathlib::vec4 Class Reference

4D Vector Vector defined with 4 float numbers More...

#include <mathlib.h>

Public Member Functions

 vec4 (void)
 
 vec4 (decimal _x, decimal _y, decimal _z, decimal _w)
 
 vec4 (const decimal *_v)
 
 vec4 (const vec3 &_v)
 
 vec4 (const vec3 &_v, decimal _w)
 
 vec4 (const vec4 &_v)
 
int operator== (const vec4 &_v)
 
int operator!= (const vec4 &_v)
 
vec4operator= (decimal _f)
 
const vec4 operator* (decimal _f) const
 
const vec4 operator/ (decimal _f) const
 
const vec4 operator+ (const vec4 &_v) const
 
const vec4 operator- () const
 
const vec4 operator- (const vec4 &_v) const
 
vec4operator*= (decimal _f)
 
vec4operator/= (decimal _f)
 
vec4operator+= (const vec4 &_v)
 
vec4operator-= (const vec4 &_v)
 
decimal operator* (const vec3 &_v) const
 
decimal operator* (const vec4 &_v) const
 
 operator decimal * ()
 
 operator const decimal * () const
 
void set (decimal _x, decimal _y, decimal _z, decimal _w)
 
void reset (void)
 
bool compare (const vec4 &_v, decimal epsi=EPSILON_6)
 

Public Attributes

union {
   struct {
      decimal   x
 
      decimal   y
 
      decimal   z
 
      decimal   w
 
   } 
 
   struct {
      decimal   s
 
      decimal   t
 
      decimal   p
 
      decimal   q
 
   } 
 
   struct {
      decimal   r
 
      decimal   g
 
      decimal   b
 
      decimal   a
 
   } 
 
   struct {
      decimal   fov
 
      decimal   ratio
 
      decimal   znear
 
      decimal   zfar
 
   } 
 
   decimal   v [4]
 
}; 
 

Detailed Description

4D Vector Vector defined with 4 float numbers

Definition at line 722 of file mathlib.h.

Constructor & Destructor Documentation

◆ vec4() [1/6]

core_mathlib::vec4::vec4 ( void  )
inline

Definition at line 725 of file mathlib.h.

Here is the caller graph for this function:

◆ vec4() [2/6]

core_mathlib::vec4::vec4 ( decimal  _x,
decimal  _y,
decimal  _z,
decimal  _w 
)
inline

Definition at line 726 of file mathlib.h.

◆ vec4() [3/6]

core_mathlib::vec4::vec4 ( const decimal _v)
inline

Definition at line 727 of file mathlib.h.

◆ vec4() [4/6]

core_mathlib::vec4::vec4 ( const vec3 _v)
inline

Definition at line 728 of file mathlib.h.

◆ vec4() [5/6]

core_mathlib::vec4::vec4 ( const vec3 _v,
decimal  _w 
)
inline

Definition at line 729 of file mathlib.h.

◆ vec4() [6/6]

core_mathlib::vec4::vec4 ( const vec4 _v)
inline

Definition at line 730 of file mathlib.h.

Member Function Documentation

◆ compare()

bool core_mathlib::vec4::compare ( const vec4 _v,
decimal  epsi = EPSILON_6 
)
inline

Definition at line 824 of file mathlib.h.

◆ operator const decimal *()

core_mathlib::vec4::operator const decimal * ( ) const
inline

Definition at line 806 of file mathlib.h.

◆ operator decimal *()

core_mathlib::vec4::operator decimal * ( )
inline

Definition at line 802 of file mathlib.h.

◆ operator!=()

int core_mathlib::vec4::operator!= ( const vec4 _v)
inline

Definition at line 737 of file mathlib.h.

◆ operator*() [1/3]

decimal core_mathlib::vec4::operator* ( const vec3 _v) const
inline

Definition at line 793 of file mathlib.h.

◆ operator*() [2/3]

decimal core_mathlib::vec4::operator* ( const vec4 _v) const
inline

Definition at line 797 of file mathlib.h.

◆ operator*() [3/3]

const vec4 core_mathlib::vec4::operator* ( decimal  _f) const
inline

Definition at line 750 of file mathlib.h.

Here is the call graph for this function:

◆ operator*=()

vec4& core_mathlib::vec4::operator*= ( decimal  _f)
inline

Definition at line 776 of file mathlib.h.

◆ operator+()

const vec4 core_mathlib::vec4::operator+ ( const vec4 _v) const
inline

Definition at line 763 of file mathlib.h.

Here is the call graph for this function:

◆ operator+=()

vec4& core_mathlib::vec4::operator+= ( const vec4 _v)
inline

Definition at line 784 of file mathlib.h.

◆ operator-() [1/2]

const vec4 core_mathlib::vec4::operator- ( ) const
inline

Definition at line 767 of file mathlib.h.

Here is the call graph for this function:

◆ operator-() [2/2]

const vec4 core_mathlib::vec4::operator- ( const vec4 _v) const
inline

Definition at line 771 of file mathlib.h.

Here is the call graph for this function:

◆ operator-=()

vec4& core_mathlib::vec4::operator-= ( const vec4 _v)
inline

Definition at line 788 of file mathlib.h.

◆ operator/()

const vec4 core_mathlib::vec4::operator/ ( decimal  _f) const
inline

Definition at line 754 of file mathlib.h.

◆ operator/=()

vec4& core_mathlib::vec4::operator/= ( decimal  _f)
inline

Definition at line 780 of file mathlib.h.

◆ operator=()

vec4& core_mathlib::vec4::operator= ( decimal  _f)
inline

Definition at line 742 of file mathlib.h.

◆ operator==()

int core_mathlib::vec4::operator== ( const vec4 _v)
inline

Definition at line 732 of file mathlib.h.

◆ reset()

void core_mathlib::vec4::reset ( void  )
inline

Definition at line 820 of file mathlib.h.

◆ set()

void core_mathlib::vec4::set ( decimal  _x,
decimal  _y,
decimal  _z,
decimal  _w 
)
inline

Definition at line 813 of file mathlib.h.

Member Data Documentation

◆ 

union { ... }

◆ a

decimal core_mathlib::vec4::a

Definition at line 842 of file mathlib.h.

◆ b

decimal core_mathlib::vec4::b

Definition at line 842 of file mathlib.h.

◆ fov

decimal core_mathlib::vec4::fov

Definition at line 846 of file mathlib.h.

◆ g

decimal core_mathlib::vec4::g

Definition at line 842 of file mathlib.h.

◆ p

decimal core_mathlib::vec4::p

Definition at line 838 of file mathlib.h.

◆ q

decimal core_mathlib::vec4::q

Definition at line 838 of file mathlib.h.

◆ r

decimal core_mathlib::vec4::r

Definition at line 842 of file mathlib.h.

◆ ratio

decimal core_mathlib::vec4::ratio

Definition at line 846 of file mathlib.h.

◆ s

decimal core_mathlib::vec4::s

Definition at line 838 of file mathlib.h.

◆ t

decimal core_mathlib::vec4::t

Definition at line 838 of file mathlib.h.

◆ v

decimal core_mathlib::vec4::v[4]

Definition at line 848 of file mathlib.h.

◆ w

decimal core_mathlib::vec4::w

Definition at line 834 of file mathlib.h.

◆ x

decimal core_mathlib::vec4::x

Definition at line 834 of file mathlib.h.

◆ y

decimal core_mathlib::vec4::y

Definition at line 834 of file mathlib.h.

◆ z

decimal core_mathlib::vec4::z

Definition at line 834 of file mathlib.h.

◆ zfar

decimal core_mathlib::vec4::zfar

Definition at line 846 of file mathlib.h.

◆ znear

decimal core_mathlib::vec4::znear

Definition at line 846 of file mathlib.h.


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