public class Curve extends Geometry implements AutoCloseable
One-dimensional geometries may be composed of simple curve segments where for adjacent curve segments the end and start point fall together to form a continuous geometry. A curve may be composed of curve segments that each have a different interpolation type. The most common use for curves is to have curve segments with the same interpolation type (e.g. polyline).
You can read more about the available geometries here.
Modifier and Type | Method and Description |
---|---|
void |
close() |
Coordinate |
computePoint(double parameter)
Computes a point of the curve, defined by the given parameter.
|
protected void |
finalize() |
double |
getLength2D()
Returns the length of the curve.
|
getBounds, getReference
public void close()
close
in interface AutoCloseable
close
in class Geometry
@NotNull public Coordinate computePoint(double parameter) throws IllegalArgumentException
parameter
- the parameter value, within [0,1]
, to compute the point location for.IllegalArgumentException
- 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.public double getLength2D() throws IllegalArgumentException
IllegalArgumentException
- if the length could not be computed. For example, when the curve is defined by invalid points.