|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
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 |
Point of a path.
Definition at line 36 of file TYPointParcours.h.
|
static |
Return the square of the curvilinear abscissa of point P on [SR].
| TYPointParcours& | P |
| TYPointParcours& | S |
| TYPointParcours& | R |
Definition at line 63 of file TYPointParcours.cpp.


|
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.

|
static |
Return false if (P1P2) and (P3P4) are parallel, true if not with P the intersection
Definition at line 156 of file TYPointParcours.cpp.

|
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.
| [in] | P1,P2,P3,P4 | The edges of the two segements [P1P2] and [P3P4] |
| [in] | bP3OrP4MustNotCoincideWithP | Boolean indicating if the intersection result must not coincide with P3 or P4 |
| [out] | P | TYPointParcours Intersection point if intersection exists |
| [in] | bP3OrP4MustNotCoincideWithP | true if P3 or P4 coincide with P |
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.


| double TYPointParcours::normeCarree | ( | ) |
Return x^2+y^2.
Definition at line 45 of file TYPointParcours.cpp.

| bool TYPointParcours::operator== | ( | TYPointParcours & | p | ) |
Return true if this point and p are on same location.
Definition at line 50 of file TYPointParcours.cpp.

|
static |
Compute the scalar product of the vector P1P2 and P3P4.
| TYPointParcours& | P1 |
| TYPointParcours& | P2 |
| TYPointParcours& | P3 |
| TYPointParcours& | P4 |
Definition at line 88 of file TYPointParcours.cpp.


|
static |
Compute the scalar product of the vector P1P2 and P3P4.
| TYPointParcours& | vecteur1 |
| TYPointParcours& | vecteur2 |
Definition at line 83 of file TYPointParcours.cpp.
|
static |
Compute the 2 dimensional vector P1P2 in the XY plane.
| TYPointParcours& | P1 |
| TYPointParcours& | P2 |
Definition at line 31 of file TYPointParcours.cpp.

|
static |
Return cross product applied to SR and SP points.
Definition at line 39 of file TYPointParcours.cpp.

|
static |
Square of the threshold distance between two points to indicate they lie on the location
Definition at line 44 of file TYPointParcours.h.
| int TYPointParcours::Identifiant |
Point id.
Definition at line 41 of file TYPointParcours.h.
| bool TYPointParcours::isEcran |
Flag set to indicate if the point is a screen.
Definition at line 43 of file TYPointParcours.h.
| bool TYPointParcours::isInfra |
Flag set to indicate if the point is an infrastructure.
Definition at line 42 of file TYPointParcours.h.
| double TYPointParcours::x |
x coordinate of the point
Definition at line 38 of file TYPointParcours.h.
| double TYPointParcours::y |
y coordinate of the point
Definition at line 39 of file TYPointParcours.h.
| double TYPointParcours::z |
z coordinate of the point
Definition at line 40 of file TYPointParcours.h.