public class LineSegmentDouble extends AbstractLineSegment
Coordinatess.
Provides methods to compute various geometric properties
and relationships of line segments.
This class is designed to be easily mutable (to the extent of
having its contained points public).
This supports a common pattern of reusing a single LineSegmentDouble
object as a way of computing segment properties on the
segments defined by arrays or lists of Coordinatess.
| Modifier | Constructor and Description |
|---|---|
|
LineSegmentDouble() |
protected |
LineSegmentDouble(GeometryFactory geometryFactory,
int axisCount,
double... coordinates) |
protected |
LineSegmentDouble(GeometryFactory geometryFactory,
LineString line) |
protected |
LineSegmentDouble(GeometryFactory geometryFactory,
Point point1,
Point point2) |
|
LineSegmentDouble(int axisCount,
double... coordinates) |
|
LineSegmentDouble(LineString line) |
|
LineSegmentDouble(Point point1,
Point point2) |
| Modifier and Type | Method and Description |
|---|---|
LineSegmentDouble |
clone()
Creates and returns a full copy of this
LineString object. |
protected LineSegment |
createLineSegment(GeometryFactory geometryFactory,
int axisCount,
double... coordinates) |
protected Point |
createPoint(GeometryFactory geometryFactory,
double... coordinates) |
int |
getAxisCount() |
double |
getCoordinate(int index,
int axisIndex) |
double[] |
getCoordinates() |
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
angle, closestPoint, closestPoints, compareTo, compareTo, convert, distance, distance, distance, distanceAlong, distanceAlong, distancePerpendicular, equals, equals, equalsTopo, extend, getElevation, getIntersection, getIntersection, getLength, getP0, getP1, getVertexCount, intersection, intersects, isEndPoint, isHorizontal, isPerpendicularTo, isPointOnLineMiddle, isVertical, isWithinDistance, isZeroLength, lineIntersection, midPoint, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectCoordinate, projectionFactor, projectionFactor, reverse, segmentFraction, touchesEndappendVertex, compareToSameClass, computeBoundingBox, convertCoordinates, copy, deleteVertex, deleteVertex, distance, doEquals, equals, equalsExact, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getBoundary, getBoundaryDimension, getCoordinatesList, getDataType, getDimension, getEndPoint, getM, getMinVertexCount, getPoint, getPoint, getPointWithin, getSegment, getSegmentCount, getStartPoint, getToVertex, getVertex, getX, getY, getZ, hasVertex, insertVertex, intersects, isClockwise, isClosed, isCounterClockwise, isEquivalentClass, isRing, merge, merge, move, moveCoordinates, moveVertex, moveVertex, orientationIndex, points, prepare, segments, split, subLine, subLine, subLine, subLine, toClockwise, toCounterClockwise, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, contains, containsProperly, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getUserData, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitgetBoundingBox, getGeometryFactorydistance, equals, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getCoordinatesList, getEndPoint, getM, getPoint, getSegmentCount, getStartPoint, getX, getY, getZ, hasVertex, isClockwise, isClosed, isCounterClockwise, isRing, merge, merge, move, moveVertex, points, prepare, split, subLine, subLine, subLine, subLineappendVertex, buffer, buffer, buffer, compareToSameClass, contains, containsProperly, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundary, getBoundaryDimension, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getUserData, getVertex, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypepublic LineSegmentDouble()
protected LineSegmentDouble(GeometryFactory geometryFactory, int axisCount, double... coordinates)
protected LineSegmentDouble(GeometryFactory geometryFactory, LineString line)
protected LineSegmentDouble(GeometryFactory geometryFactory, Point point1, Point point2)
public LineSegmentDouble(int axisCount,
double... coordinates)
public LineSegmentDouble(LineString line)
public LineSegmentDouble clone()
AbstractLineStringLineString object.
(including all coordinates contained by it).clone in interface Geometryclone in interface LineStringclone in class AbstractLineSegmentprotected LineSegment createLineSegment(GeometryFactory geometryFactory, int axisCount, double... coordinates)
createLineSegment in class AbstractLineSegmentprotected Point createPoint(GeometryFactory geometryFactory, double... coordinates)
createPoint in class AbstractLineSegmentpublic int getAxisCount()
getAxisCount in interface GeometrygetAxisCount in interface LineSegmentgetAxisCount in class AbstractLineSegmentpublic double getCoordinate(int index,
int axisIndex)
public double[] getCoordinates()
getCoordinates in interface LineStringgetCoordinates in class AbstractLineStringpublic boolean isEmpty()
AbstractGeometryGeometry is
empty.isEmpty in interface GeometryisEmpty in class AbstractLineSegmenttrue if this Geometry does not cover any pointsCopyright © 2015 Revolution Systems Inc.. All rights reserved.