#include <TYVisibilityCone.h>
Definition at line 27 of file TYVisibilityCone.h.
◆ VisibilityCone()
Builds a visibility cone spanned from point A into points B and C This cone is such that [BC] segment is inside the cone.
- Parameters
-
| pA | A point (third coordinate is ignored) |
| pB | B point (third coordinate is ignored) |
| pC | C point (third coordinate is ignored) |
Definition at line 18 of file TYVisibilityCone.cpp.
◆ FRIEND_TEST() [1/2]
| VisibilityCone::FRIEND_TEST |
( |
test_TYVisibilityCone |
, |
|
|
pointIsInCone |
|
|
) |
| |
|
private |
◆ FRIEND_TEST() [2/2]
◆ pointIsInCone()
| bool VisibilityCone::pointIsInCone |
( |
const OPoint3D & |
pM2D | ) |
const |
|
private |
Test if the point M lies inside the visibility cone.
- Parameters
-
| pM | M point (third coordinate is assumed to be 0) |
- Returns
- true if M is inside the cone, false otherwise
Definition at line 41 of file TYVisibilityCone.cpp.
◆ segmentIntersectsBorderCone()
| bool VisibilityCone::segmentIntersectsBorderCone |
( |
const OPoint3D & |
pM2D, |
|
|
const OPoint3D & |
pN2D |
|
) |
| const |
|
private |
Test if the segment [MN] intersects the borders of the visibility cone.
- Parameters
-
| pM | M point (third coordinate is assumed to be 0) |
| pN | N point (third coordinate is assumed to be 0) |
- Returns
- true if [MN] intersects one of the borders of the cone, false otherwise
Definition at line 49 of file TYVisibilityCone.cpp.
◆ segmentIsVisibleInCone()
| bool VisibilityCone::segmentIsVisibleInCone |
( |
const OSegment3D & |
segmentToTest | ) |
const |
Test if a segment is visible in the visibility cone.
- Parameters
-
| segmentToTest | segment to test (third coordinates of points are ignored) |
- Returns
- true if segmentToTest intersects the visibility cone
Definition at line 28 of file TYVisibilityCone.cpp.
◆ setupNormalsOfCone()
| void VisibilityCone::setupNormalsOfCone |
( |
| ) |
|
|
private |
◆ _nAB
◆ _nAC
◆ _pA2D
◆ _pB2D
◆ _pC2D
◆ _vAB
◆ _vAC
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_1033/Tympan/solvers/9613/9613Solver2024/TYVisibilityCone.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_1033/Tympan/solvers/9613/9613Solver2024/TYVisibilityCone.cpp