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

4D Vector Vector defined with 4 integers More...

#include <mathlib.h>

Public Member Functions

 ivec4 (void)
 
 ivec4 (long _a, long _b, long _c, long _d)
 
 ivec4 (const long *iv)
 
 ivec4 (const ivec3 &iv)
 
 ivec4 (const ivec3 &iv, long _d)
 
 ivec4 (const ivec4 &iv)
 
int operator== (const ivec4 &iv)
 
int operator!= (const ivec4 &iv)
 
ivec4operator= (long _i)
 
const ivec4 operator* (long _i) const
 
const ivec4 operator/ (long _i) const
 
const ivec4 operator+ (const ivec4 &iv) const
 
const ivec4 operator- () const
 
const ivec4 operator- (const ivec4 &iv) const
 
ivec4operator*= (long _i)
 
ivec4operator/= (long _i)
 
ivec4operator+= (const ivec4 &iv)
 
ivec4operator-= (const ivec4 &iv)
 
long operator* (const ivec3 &iv) const
 
long operator* (const ivec4 &iv) const
 
 operator long * ()
 
 operator const long * () const
 
void set (long _a, long _b, long _c, long _d)
 
void reset (void)
 
void swap (ivec4 &iv)
 
void swap (ivec4 *iv)
 

Public Attributes

union {
   struct {
      long   a
 
      long   b
 
      long   c
 
      long   d
 
   } 
 
   struct {
      long   x
 
      long   y
 
      long   z
 
      long   w
 
   } 
 
   struct {
      long   red
 
      long   green
 
      long   blue
 
      long   alpha
 
   } 
 
   long   i [4]
 
}; 
 

Detailed Description

4D Vector Vector defined with 4 integers

Definition at line 1191 of file mathlib.h.

Constructor & Destructor Documentation

◆ ivec4() [1/6]

core_mathlib::ivec4::ivec4 ( void  )
inline

Definition at line 1194 of file mathlib.h.

Here is the caller graph for this function:

◆ ivec4() [2/6]

core_mathlib::ivec4::ivec4 ( long  _a,
long  _b,
long  _c,
long  _d 
)
inline

Definition at line 1195 of file mathlib.h.

◆ ivec4() [3/6]

core_mathlib::ivec4::ivec4 ( const long *  iv)
inline

Definition at line 1196 of file mathlib.h.

◆ ivec4() [4/6]

core_mathlib::ivec4::ivec4 ( const ivec3 iv)
inline

Definition at line 1197 of file mathlib.h.

◆ ivec4() [5/6]

core_mathlib::ivec4::ivec4 ( const ivec3 iv,
long  _d 
)
inline

Definition at line 1198 of file mathlib.h.

◆ ivec4() [6/6]

core_mathlib::ivec4::ivec4 ( const ivec4 iv)
inline

Definition at line 1199 of file mathlib.h.

Member Function Documentation

◆ operator const long *()

core_mathlib::ivec4::operator const long * ( ) const
inline

Definition at line 1269 of file mathlib.h.

◆ operator long *()

core_mathlib::ivec4::operator long * ( )
inline

Definition at line 1265 of file mathlib.h.

◆ operator!=()

int core_mathlib::ivec4::operator!= ( const ivec4 iv)
inline

Definition at line 1205 of file mathlib.h.

◆ operator*() [1/3]

long core_mathlib::ivec4::operator* ( const ivec3 iv) const
inline

Definition at line 1256 of file mathlib.h.

◆ operator*() [2/3]

long core_mathlib::ivec4::operator* ( const ivec4 iv) const
inline

Definition at line 1260 of file mathlib.h.

◆ operator*() [3/3]

const ivec4 core_mathlib::ivec4::operator* ( long  _i) const
inline

Definition at line 1218 of file mathlib.h.

Here is the call graph for this function:

◆ operator*=()

ivec4& core_mathlib::ivec4::operator*= ( long  _i)
inline

Definition at line 1239 of file mathlib.h.

◆ operator+()

const ivec4 core_mathlib::ivec4::operator+ ( const ivec4 iv) const
inline

Definition at line 1226 of file mathlib.h.

Here is the call graph for this function:

◆ operator+=()

ivec4& core_mathlib::ivec4::operator+= ( const ivec4 iv)
inline

Definition at line 1247 of file mathlib.h.

◆ operator-() [1/2]

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

Definition at line 1230 of file mathlib.h.

Here is the call graph for this function:

◆ operator-() [2/2]

const ivec4 core_mathlib::ivec4::operator- ( const ivec4 iv) const
inline

Definition at line 1234 of file mathlib.h.

Here is the call graph for this function:

◆ operator-=()

ivec4& core_mathlib::ivec4::operator-= ( const ivec4 iv)
inline

Definition at line 1251 of file mathlib.h.

◆ operator/()

const ivec4 core_mathlib::ivec4::operator/ ( long  _i) const
inline

Definition at line 1222 of file mathlib.h.

Here is the call graph for this function:

◆ operator/=()

ivec4& core_mathlib::ivec4::operator/= ( long  _i)
inline

Definition at line 1243 of file mathlib.h.

◆ operator=()

ivec4& core_mathlib::ivec4::operator= ( long  _i)
inline

Definition at line 1210 of file mathlib.h.

◆ operator==()

int core_mathlib::ivec4::operator== ( const ivec4 iv)
inline

Definition at line 1201 of file mathlib.h.

◆ reset()

void core_mathlib::ivec4::reset ( void  )
inline

Definition at line 1283 of file mathlib.h.

◆ set()

void core_mathlib::ivec4::set ( long  _a,
long  _b,
long  _c,
long  _d 
)
inline

Definition at line 1276 of file mathlib.h.

◆ swap() [1/2]

void core_mathlib::ivec4::swap ( ivec4 iv)
inline

Definition at line 1287 of file mathlib.h.

Here is the caller graph for this function:

◆ swap() [2/2]

void core_mathlib::ivec4::swap ( ivec4 iv)
inline

Definition at line 1302 of file mathlib.h.

Here is the call graph for this function:

Member Data Documentation

◆ 

union { ... }

◆ a

long core_mathlib::ivec4::a

Definition at line 1311 of file mathlib.h.

◆ alpha

long core_mathlib::ivec4::alpha

Definition at line 1319 of file mathlib.h.

◆ b

long core_mathlib::ivec4::b

Definition at line 1311 of file mathlib.h.

◆ blue

long core_mathlib::ivec4::blue

Definition at line 1319 of file mathlib.h.

◆ c

long core_mathlib::ivec4::c

Definition at line 1311 of file mathlib.h.

◆ d

long core_mathlib::ivec4::d

Definition at line 1311 of file mathlib.h.

◆ green

long core_mathlib::ivec4::green

Definition at line 1319 of file mathlib.h.

◆ i

long core_mathlib::ivec4::i[4]

Definition at line 1321 of file mathlib.h.

◆ red

long core_mathlib::ivec4::red

Definition at line 1319 of file mathlib.h.

◆ w

long core_mathlib::ivec4::w

Definition at line 1315 of file mathlib.h.

◆ x

long core_mathlib::ivec4::x

Definition at line 1315 of file mathlib.h.

◆ y

long core_mathlib::ivec4::y

Definition at line 1315 of file mathlib.h.

◆ z

long core_mathlib::ivec4::z

Definition at line 1315 of file mathlib.h.


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