Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TYPointParcours Struct Reference

Point of a path. More...

#include <TYPointParcours.h>

Public Member Functions

bool operator== (TYPointParcours &p)
 Return true if this point and p are on same location. More...
 
double normeCarree ()
 Return x^2+y^2. More...
 

Static Public Member Functions

static bool Confondus (TYPointParcours *P1, TYPointParcours *P2)
 
static double ZCross (TYPointParcours SR, TYPointParcours SP)
 Return cross product applied to SR and SP points. More...
 
static bool IntersectionDroites (TYPointParcours &P1, TYPointParcours &P2, TYPointParcours &P3, TYPointParcours &P4, TYPointParcours &P)
 
static bool IntersectionSegments (TYPointParcours &P1, TYPointParcours &P2, TYPointParcours &P3, TYPointParcours &P4, TYPointParcours &P, bool bP3OrP4MustNotCoincideWithP=false)
 Return true if [P1P2] intersects [P3P4] if P1 or P2 coincide with the intersection point P, then returns false if bP3OrP4MustNotCoincideWithP is true and P3 our P4 coincide with the intersection point P, then returns false. More...
 
static double Scalaire (TYPointParcours &P1, TYPointParcours &P2, TYPointParcours &P3, TYPointParcours &P4)
 Compute the scalar product of the vector P1P2 and P3P4. More...
 
static double Scalaire (TYPointParcours &vecteur1, TYPointParcours &vecteur2)
 Compute the scalar product of the vector P1P2 and P3P4. More...
 
static TYPointParcours vecteur2D (TYPointParcours &P1, TYPointParcours &P2)
 Compute the 2 dimensional vector P1P2 in the XY plane. More...
 
static double AbscisseCurviligneCarreSurSR (TYPointParcours &P, TYPointParcours &S, TYPointParcours &R)
 Return the square of the curvilinear abscissa of point P on [SR]. More...
 

Public Attributes

double x
 x coordinate of the point More...
 
double y
 y coordinate of the point More...
 
double z
 z coordinate of the point More...
 
int Identifiant
 Point id. More...
 
bool isInfra
 Flag set to indicate if the point is an infrastructure. More...
 
bool isEcran
 Flag set to indicate if the point is a screen. More...
 

Static Public Attributes

static const double _dSeuilDistanceCarre
 

Detailed Description

Point of a path.

Definition at line 36 of file TYPointParcours.h.

Member Function Documentation

◆ AbscisseCurviligneCarreSurSR()

double TYPointParcours::AbscisseCurviligneCarreSurSR ( TYPointParcours P,
TYPointParcours S,
TYPointParcours R 
)
static

Return the square of the curvilinear abscissa of point P on [SR].

Parameters
TYPointParcours&P
TYPointParcours&S
TYPointParcours&R
Returns
double square of the curvilinear abscissa of point P on [SR]

Definition at line 63 of file TYPointParcours.cpp.

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

◆ Confondus()

bool TYPointParcours::Confondus ( TYPointParcours P1,
TYPointParcours P2 
)
static

Return true if P1 and P2 are on the same location (separated by less than a threshold distance)

Definition at line 55 of file TYPointParcours.cpp.

Here is the caller graph for this function:

◆ IntersectionDroites()

bool TYPointParcours::IntersectionDroites ( TYPointParcours P1,
TYPointParcours P2,
TYPointParcours P3,
TYPointParcours P4,
TYPointParcours P 
)
static

Return false if (P1P2) and (P3P4) are parallel, true if not with P the intersection

Definition at line 156 of file TYPointParcours.cpp.

Here is the caller graph for this function:

◆ IntersectionSegments()

bool TYPointParcours::IntersectionSegments ( TYPointParcours P1,
TYPointParcours P2,
TYPointParcours P3,
TYPointParcours P4,
TYPointParcours P,
bool  bP3OrP4MustNotCoincideWithP = false 
)
static

Return true if [P1P2] intersects [P3P4] if P1 or P2 coincide with the intersection point P, then returns false if bP3OrP4MustNotCoincideWithP is true and P3 our P4 coincide with the intersection point P, then returns false.

Parameters
[in]P1,P2,P3,P4The edges of the two segements [P1P2] and [P3P4]
[in]bP3OrP4MustNotCoincideWithPBoolean indicating if the intersection result must not coincide with P3 or P4
[out]PTYPointParcours Intersection point if intersection exists
[in]bP3OrP4MustNotCoincideWithPtrue if P3 or P4 coincide with P
Returns
true if [P1P2] intersects [P3P4] and intersection point does not coincide with P1 or P2 and (bP3OrP4MustNotCoincideWithP if false or intersection point does not coincide with P3 or P4); false [P1P2] else.

Definition at line 96 of file TYPointParcours.cpp.

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

◆ normeCarree()

double TYPointParcours::normeCarree ( )

Return x^2+y^2.

Definition at line 45 of file TYPointParcours.cpp.

Here is the caller graph for this function:

◆ operator==()

bool TYPointParcours::operator== ( TYPointParcours p)

Return true if this point and p are on same location.

Definition at line 50 of file TYPointParcours.cpp.

Here is the call graph for this function:

◆ Scalaire() [1/2]

double TYPointParcours::Scalaire ( TYPointParcours P1,
TYPointParcours P2,
TYPointParcours P3,
TYPointParcours P4 
)
static

Compute the scalar product of the vector P1P2 and P3P4.

Parameters
TYPointParcours&P1
TYPointParcours&P2
TYPointParcours&P3
TYPointParcours&P4
Returns
double scalar product of the vectors

Definition at line 88 of file TYPointParcours.cpp.

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

◆ Scalaire() [2/2]

double TYPointParcours::Scalaire ( TYPointParcours vecteur1,
TYPointParcours vecteur2 
)
static

Compute the scalar product of the vector P1P2 and P3P4.

Parameters
TYPointParcours&vecteur1
TYPointParcours&vecteur2
Returns
double scalar product of the vectors

Definition at line 83 of file TYPointParcours.cpp.

◆ vecteur2D()

TYPointParcours TYPointParcours::vecteur2D ( TYPointParcours P1,
TYPointParcours P2 
)
static

Compute the 2 dimensional vector P1P2 in the XY plane.

Parameters
TYPointParcours&P1
TYPointParcours&P2
Returns
TYPointParcours 2D vector

Definition at line 31 of file TYPointParcours.cpp.

Here is the caller graph for this function:

◆ ZCross()

double TYPointParcours::ZCross ( TYPointParcours  SR,
TYPointParcours  SP 
)
static

Return cross product applied to SR and SP points.

Definition at line 39 of file TYPointParcours.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _dSeuilDistanceCarre

const double TYPointParcours::_dSeuilDistanceCarre
static
Initial value:
=
#define SEUIL_DISTANCE_POINTS_CONFONDUS
Below a distance of 2 centimeters, the points are considered on the same location.

Square of the threshold distance between two points to indicate they lie on the location

Definition at line 44 of file TYPointParcours.h.

◆ Identifiant

int TYPointParcours::Identifiant

Point id.

Definition at line 41 of file TYPointParcours.h.

◆ isEcran

bool TYPointParcours::isEcran

Flag set to indicate if the point is a screen.

Definition at line 43 of file TYPointParcours.h.

◆ isInfra

bool TYPointParcours::isInfra

Flag set to indicate if the point is an infrastructure.

Definition at line 42 of file TYPointParcours.h.

◆ x

double TYPointParcours::x

x coordinate of the point

Definition at line 38 of file TYPointParcours.h.

◆ y

double TYPointParcours::y

y coordinate of the point

Definition at line 39 of file TYPointParcours.h.

◆ z

double TYPointParcours::z

z coordinate of the point

Definition at line 40 of file TYPointParcours.h.


The documentation for this struct was generated from the following files: