Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Functions
TYVisibilityCone.cpp File Reference
#include "TYVisibilityCone.h"
Include dependency graph for TYVisibilityCone.cpp:

Go to the source code of this file.

Functions

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

◆ 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: