The result of a line intersection.
More...
#include <luciad/geodesy/GeodesyCalculations.h>
The result of a line intersection.
If an intersection exists, this can either be a single point, or a line segment.
- Since
- 2025.0
- See also
GeodesyCalculations::intersectLineSegments
◆ IntersectionType
The type of intersection.
- Since
- 2025.0
Enumerator |
---|
Point | When the intersection is a single point.
|
LineSegment | When the intersection is a line segment.
|
◆ LineIntersection() [1/2]
luciad::LineIntersection::LineIntersection |
( |
Coordinate |
point | ) |
|
|
explicit |
Creates a line intersection result that consists of a single point.
- Parameters
-
point | the intersection point |
◆ LineIntersection() [2/2]
luciad::LineIntersection::LineIntersection |
( |
Line |
lineSegment | ) |
|
|
explicit |
Creates a line intersection result that consists of a line segment.
- Parameters
-
lineSegment | the line segment that forms the intersection |
◆ ~LineIntersection()
luciad::LineIntersection::~LineIntersection |
( |
| ) |
|
◆ getLineSegment()
const Line & luciad::LineIntersection::getLineSegment |
( |
| ) |
const |
Returns the line segment that forms the intersection.
- Returns
- the line segment that forms the intersection.
- Exceptions
-
◆ getPoint()
Coordinate luciad::LineIntersection::getPoint |
( |
| ) |
const |
Returns the single intersection point.
- Returns
- the single intersection point.
- Exceptions
-
◆ getType()
Returns the intersection type.
This can either be a single point, or a line segment.
- Returns
- the intersection type.