Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Classes | Functions
TYVisibilityCone.h File Reference
#include "Tympan/models/common/3d.h"
#include <gtest/gtest_prod.h>
Include dependency graph for TYVisibilityCone.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VisibilityCone
 

Functions

OVector3D buildVector2D (const OPoint3D &pA2D, const OPoint3D &pB2D)
 Optimized way to build a vector in 2D (horizontal plane z = 0) from point A to B To use as a replacement of costly OVector3D::OVector3D(const OCoord3D&, const OCoord3D&) More...
 
bool segmentIntersectsSemiLine2D (const OVector3D &vAB, const OVector3D &vMN, const OVector3D &vAM)
 Test if the segment [MN] intersects the semi-line [AB) in 2D (horizontal plane z = 0) More...
 
bool solveLin2x2 (double a11, double a12, double a21, double a22, double b1, double b2, double &x1, double &x2)
 Solve a 2x2 linear system of equations Ax = b. More...
 

Function Documentation

◆ buildVector2D()

OVector3D buildVector2D ( const OPoint3D pA2D,
const OPoint3D pB2D 
)
inline

Optimized way to build a vector in 2D (horizontal plane z = 0) from point A to B To use as a replacement of costly OVector3D::OVector3D(const OCoord3D&, const OCoord3D&)

Parameters
pA2DA point (third coordinate is ignored)
pB2DA point (third coordinate is ignored)
Returns
vector from A to B (third coordinate is 0)

Definition at line 92 of file TYVisibilityCone.h.

Here is the caller graph for this function:

◆ segmentIntersectsSemiLine2D()

bool segmentIntersectsSemiLine2D ( const OVector3D vAB,
const OVector3D vMN,
const OVector3D vAM 
)

Test if the segment [MN] intersects the semi-line [AB) in 2D (horizontal plane z = 0)

Parameters
vABAB vector (third coordinates are assumed to be 0)
vMNMN vector (third coordinates are assumed to be 0)
vAMAM vector (third coordinates are assumed to be 0)
Returns
true if [MN] intersects semi-line [AB) in 1 point, false otherwise

Definition at line 74 of file TYVisibilityCone.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ solveLin2x2()

bool solveLin2x2 ( double  a11,
double  a12,
double  a21,
double  a22,
double  b1,
double  b2,
double &  x1,
double &  x2 
)

Solve a 2x2 linear system of equations Ax = b.

Parameters
[in]a11A_11 coefficient
[in]a12A_12 coefficient
[in]a21A_21 coefficient
[in]a22A_22 coefficient
[in]b1b_1 coefficient
[in]b2b_2 coefficient
[out]x1solution x_1
[out]x2solution x_2
Returns
true if there is a unique solution, false otherwise

Definition at line 92 of file TYVisibilityCone.cpp.

Here is the caller graph for this function: