Represents a line.
More...
#include <luciad/geometries/Line.h>
|
size_t | getHash () const override |
| Returns the hash value for this geometry. More...
|
|
virtual size_t | getHash () const =0 |
| Returns the hash value for this geometry. More...
|
|
Represents a line.
- See also
- GeometryFactory::createLine
◆ ~Line()
◆ computePoint()
Coordinate luciad::Line::computePoint |
( |
double |
parameter | ) |
const |
|
overridevirtual |
Computes a point of the curve, defined by the given parameter.
- At parameter 0, the point is the start point of the curve.
- At parameter 1, the point is the end point of the curve.
- Parameters
-
parameter | the parameter value, within [0,1] , to compute the point location for. |
- Returns
- the computed point location.
- Exceptions
-
luciad::InvalidArgumentException | if parameter is not within [0,1] , or if the point could not be computed. For example, when the curve is defined by invalid points. |
Implements luciad::Curve.
◆ getBounds()
Bounds luciad::Line::getBounds |
( |
| ) |
const |
|
overridevirtual |
Returns the bounds for the geometry object.
- Returns
- the bounds for the geometry object.
- Exceptions
-
Implements luciad::Geometry.
◆ getEndPoint()
Returns the end point of the line segment.
- Returns
- the end point of the line segment.
◆ getHash()
size_t luciad::Line::getHash |
( |
| ) |
const |
|
overrideprotectedvirtual |
Returns the hash value for this geometry.
- Returns
- the hash value for this geometry.
Implements luciad::Geometry.
◆ getInterpolationType()
Returns the interpolation type of the line segment.
One of
-
LineInterpolationType::geodesic
-
LineInterpolationType::rhumb
-
LineInterpolationType::linear
- Returns
- the interpolation type of the line segment.
◆ getLength2D()
double luciad::Line::getLength2D |
( |
| ) |
const |
|
overridevirtual |
Returns the length of the curve.
- Returns
- the length of the curve.
- Exceptions
-
Implements luciad::Curve.
◆ getReference()
Returns the coordinate reference of the geometry.
- Returns
- the coordinate reference of the geometry.
Implements luciad::Geometry.
◆ getStartPoint()
Returns the start point of the line segment.
- Returns
- the start point of the line segment.