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 intprivate Coordinateprivate Coordinateprivate Coordinateprivate CoordinateSequenceprivate Coordinateprivate Coordinateprivate Coordinateprivate 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 doublecomputeLineLineDistance(FacetSequence facetSeq) private doublecomputePointLineDistance(Coordinate pt, FacetSequence facetSeq) doubledistance(FacetSequence facetSeq) getCoordinate(int index) booleanisPoint()intsize()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