public class TaggedLineSegment extends LineSegment
LineSegment
which is tagged with its location in a parent Geometry
.
Used to index the segments in a geometry and recover the segment locations
from the index.p0, p1
Constructor and Description |
---|
TaggedLineSegment(Coordinate p0,
Coordinate p1) |
TaggedLineSegment(Coordinate p0,
Coordinate p1,
Geometry parent,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
Geometry |
getParent() |
angle, closestPoint, closestPoints, compareTo, distance, distance, distancePerpendicular, equals, equalsTopo, getCoordinate, getLength, hashCode, intersection, isHorizontal, isVertical, lineIntersection, midPoint, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectionFactor, reverse, segmentFraction, setCoordinates, setCoordinates, toGeometry, toString
public TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)
public TaggedLineSegment(Coordinate p0, Coordinate p1)
public Geometry getParent()
public int getIndex()