Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Macros | Functions
3d.cpp File Reference
#include <math.h>
#include <stdio.h>
#include "3d.h"
Include dependency graph for 3d.cpp:

Go to the source code of this file.

Macros

#define MAX(A, B)   (((A) > (B)) ? (A) : (B))
 
#define MIN(A, B)   (((A) > (B)) ? (B) : (A))
 
#define minP(A, B, C)   ((((A).C) > ((B).C)) ? (B) : (A))
 
#define coeff_ang(PA, PB)   (((PB)._y - (PA)._y) / ((PB)._x - (PA)._x))
 
#define DOT(u, v)   ((u)._x * (v)._x + (u)._y * (v)._y + (u)._z * (v)._z)
 

Functions

::std::ostream & operator<< (::std::ostream &os, const OCoord3D &c)
 
OVector3D operator* (const double a, const OVector3D &vector)
 
::std::ostream & operator<< (::std::ostream &os, const OVector3D &v)
 
::std::ostream & operator<< (::std::ostream &os, const OPoint3D &v)
 
OVector3D operator* (const OMatrix &mat, const OVector3D &vec)
 
OPoint3D operator* (const OMatrix &mat, const OPoint3D &pt)
 

Macro Definition Documentation

◆ coeff_ang

#define coeff_ang (   PA,
  PB 
)    (((PB)._y - (PA)._y) / ((PB)._x - (PA)._x))

Definition at line 24 of file 3d.cpp.

◆ DOT

#define DOT (   u,
 
)    ((u)._x * (v)._x + (u)._y * (v)._y + (u)._z * (v)._z)

Definition at line 25 of file 3d.cpp.

◆ MAX

#define MAX (   A,
 
)    (((A) > (B)) ? (A) : (B))

Definition at line 21 of file 3d.cpp.

◆ MIN

#define MIN (   A,
 
)    (((A) > (B)) ? (B) : (A))

Definition at line 22 of file 3d.cpp.

◆ minP

#define minP (   A,
  B,
 
)    ((((A).C) > ((B).C)) ? (B) : (A))

Definition at line 23 of file 3d.cpp.

Function Documentation

◆ operator*() [1/3]

OVector3D operator* ( const double  a,
const OVector3D vector 
)

Definition at line 187 of file 3d.cpp.

◆ operator*() [2/3]

OPoint3D operator* ( const OMatrix mat,
const OPoint3D pt 
)

Definition at line 575 of file 3d.cpp.

Here is the call graph for this function:

◆ operator*() [3/3]

OVector3D operator* ( const OMatrix mat,
const OVector3D vec 
)

Definition at line 568 of file 3d.cpp.

Here is the call graph for this function:

◆ operator<<() [1/3]

::std::ostream& operator<< ( ::std::ostream &  os,
const OCoord3D c 
)

Definition at line 104 of file 3d.cpp.

◆ operator<<() [2/3]

::std::ostream& operator<< ( ::std::ostream &  os,
const OPoint3D v 
)

Definition at line 430 of file 3d.cpp.

◆ operator<<() [3/3]

::std::ostream& operator<< ( ::std::ostream &  os,
const OVector3D v 
)

Definition at line 319 of file 3d.cpp.