Class FacetSequence
java.lang.Object
org.locationtech.jts.operation.distance.FacetSequence
Represents a sequence of facets (points or line segments)
of a
Geometry
specified by a subsequence of a CoordinateSequence
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Coordinate
private Coordinate
private Coordinate
private CoordinateSequence
private Coordinate
private Coordinate
private Coordinate
private int
-
Constructor Summary
ConstructorsConstructorDescriptionFacetSequence
(CoordinateSequence pts, int start) Creates a new sequence for a single point from a CoordinateSequence.FacetSequence
(CoordinateSequence pts, int start, int end) Creates a new section based on a CoordinateSequence. -
Method Summary
Modifier and TypeMethodDescriptionprivate double
computeLineLineDistance
(FacetSequence facetSeq) private double
computePointLineDistance
(Coordinate pt, FacetSequence facetSeq) double
distance
(FacetSequence facetSeq) getCoordinate
(int index) boolean
isPoint()
int
size()
toString()
-
Field Details
-
pts
-
start
private int start -
end
private int end -
pt
-
seqPt
-
p0
-
p1
-
q0
-
q1
-
-
Constructor Details
-
FacetSequence
Creates a new section based on a CoordinateSequence.- Parameters:
pts
- the sequence holding the points in the sectionstart
- the index of the start pointend
- the index of the end point + 1
-
FacetSequence
Creates a new sequence for a single point from a CoordinateSequence.- Parameters:
pts
- the sequence holding the points in the facet sequencestart
- the index of the point
-
-
Method Details