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.Modifier and Type | Field and Description |
---|---|
private int |
index |
private Geometry |
parent |
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, maxX, maxY, midPoint, midPoint, minX, minY, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectionFactor, reverse, segmentFraction, setCoordinates, setCoordinates, toGeometry, toString
private Geometry parent
private int index
public TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)
public TaggedLineSegment(Coordinate p0, Coordinate p1)
public Geometry getParent()
public int getIndex()