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

3D Vector Vector defined with 3 integers More...

#include <mathlib.h>

Public Member Functions

 ivec3 (void)
 
 ivec3 (long _a, long _b, long _c)
 
 ivec3 (const long *iv)
 
 ivec3 (const ivec3 &iv)
 
 ivec3 (const ivec4 &iv)
 
int operator== (const ivec3 &iv)
 
int operator!= (const ivec3 &iv)
 
ivec3operator= (long _i)
 
ivec3operator= (vec3 &iv)
 
const ivec3 operator* (long _i) const
 
const ivec3 operator/ (long _i) const
 
const ivec3 operator+ (const ivec3 &iv) const
 
const ivec3 operator- () const
 
const ivec3 operator- (const ivec3 &iv) const
 
ivec3operator*= (long _i)
 
ivec3operator/= (long _i)
 
ivec3operator+= (const ivec3 &iv)
 
ivec3operator-= (const ivec3 &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)
 
void set (int tab[3])
 
void reset (void)
 
void swap (ivec3 &iv)
 
void swap (ivec3 *iv)
 

Public Attributes

union {
   struct {
      long   a
 
      long   b
 
      long   c
 
   } 
 
   struct {
      long   x
 
      long   y
 
      long   z
 
   } 
 
   struct {
      long   red
 
      long   green
 
      long   blue
 
   } 
 
   long   i [3]
 
}; 
 

Detailed Description

3D Vector Vector defined with 3 integers

Definition at line 1043 of file mathlib.h.

Constructor & Destructor Documentation

◆ ivec3() [1/5]

core_mathlib::ivec3::ivec3 ( void  )
inline

Definition at line 1046 of file mathlib.h.

Here is the caller graph for this function:

◆ ivec3() [2/5]

core_mathlib::ivec3::ivec3 ( long  _a,
long  _b,
long  _c 
)
inline

Definition at line 1047 of file mathlib.h.

◆ ivec3() [3/5]

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

Definition at line 1048 of file mathlib.h.

◆ ivec3() [4/5]

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

Definition at line 1049 of file mathlib.h.

◆ ivec3() [5/5]

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

Definition at line 1325 of file mathlib.h.

Member Function Documentation

◆ operator const long *()

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

Definition at line 1123 of file mathlib.h.

◆ operator long *()

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

Definition at line 1119 of file mathlib.h.

◆ operator!=()

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

Definition at line 1056 of file mathlib.h.

◆ operator*() [1/3]

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

Definition at line 1113 of file mathlib.h.

◆ operator*() [2/3]

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

Definition at line 1332 of file mathlib.h.

◆ operator*() [3/3]

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

Definition at line 1075 of file mathlib.h.

Here is the call graph for this function:

◆ operator*=()

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

Definition at line 1096 of file mathlib.h.

◆ operator+()

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

Definition at line 1083 of file mathlib.h.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 1104 of file mathlib.h.

◆ operator-() [1/2]

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

Definition at line 1087 of file mathlib.h.

Here is the call graph for this function:

◆ operator-() [2/2]

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

Definition at line 1091 of file mathlib.h.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 1108 of file mathlib.h.

◆ operator/()

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

Definition at line 1079 of file mathlib.h.

Here is the call graph for this function:

◆ operator/=()

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

Definition at line 1100 of file mathlib.h.

◆ operator=() [1/2]

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

Definition at line 1061 of file mathlib.h.

◆ operator=() [2/2]

ivec3& core_mathlib::ivec3::operator= ( vec3 iv)
inline

Definition at line 1068 of file mathlib.h.

◆ operator==()

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

Definition at line 1052 of file mathlib.h.

◆ reset()

void core_mathlib::ivec3::reset ( void  )
inline

Definition at line 1142 of file mathlib.h.

◆ set() [1/2]

void core_mathlib::ivec3::set ( int  tab[3])
inline

Definition at line 1136 of file mathlib.h.

◆ set() [2/2]

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

Definition at line 1130 of file mathlib.h.

◆ swap() [1/2]

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

Definition at line 1146 of file mathlib.h.

Here is the caller graph for this function:

◆ swap() [2/2]

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

Definition at line 1158 of file mathlib.h.

Here is the call graph for this function:

Member Data Documentation

◆ 

union { ... }

◆ a

long core_mathlib::ivec3::a

Definition at line 1167 of file mathlib.h.

◆ b

long core_mathlib::ivec3::b

Definition at line 1167 of file mathlib.h.

◆ blue

long core_mathlib::ivec3::blue

Definition at line 1175 of file mathlib.h.

◆ c

long core_mathlib::ivec3::c

Definition at line 1167 of file mathlib.h.

◆ green

long core_mathlib::ivec3::green

Definition at line 1175 of file mathlib.h.

◆ i

long core_mathlib::ivec3::i[3]

Definition at line 1177 of file mathlib.h.

◆ red

long core_mathlib::ivec3::red

Definition at line 1175 of file mathlib.h.

◆ x

long core_mathlib::ivec3::x

Definition at line 1171 of file mathlib.h.

◆ y

long core_mathlib::ivec3::y

Definition at line 1171 of file mathlib.h.

◆ z

long core_mathlib::ivec3::z

Definition at line 1171 of file mathlib.h.


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