Class FacetSequence
- java.lang.Object
-
- org.meteoinfo.jts.operation.distance.FacetSequence
-
public class FacetSequence extends java.lang.ObjectRepresents a sequence of facets (points or line segments) of aGeometryspecified by a subsequence of aCoordinateSequence.
-
-
Constructor Summary
Constructors Constructor Description FacetSequence(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledistance(FacetSequence facetSeq)CoordinategetCoordinate(int index)EnvelopegetEnvelope()booleanisPoint()intsize()java.lang.StringtoString()
-
-
-
Constructor Detail
-
FacetSequence
public FacetSequence(CoordinateSequence pts, int start, int end)
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
public FacetSequence(CoordinateSequence pts, int start)
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 Detail
-
getEnvelope
public Envelope getEnvelope()
-
size
public int size()
-
getCoordinate
public Coordinate getCoordinate(int index)
-
isPoint
public boolean isPoint()
-
distance
public double distance(FacetSequence facetSeq)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-