public interface Point extends Geometry, Puntal, Serializable
Point is topologically valid if and only if:
NaN X or Y ordinate)
| Modifier and Type | Field and Description |
|---|---|
static double |
NULL_ORDINATE
The value used to indicate a null or missing ordinate value.
|
static int |
X
Standard ordinate index values
|
static int |
Y |
static int |
Z |
M, sortedGeometryTypes| Modifier and Type | Method and Description |
|---|---|
double |
angle2d(Point other)
Calculate the counter clockwise angle in radians of the vector from this
point to another point.
|
Point |
clone()
Creates and returns a full copy of this
Point object. |
Point |
clonePoint() |
int |
compareTo(Object o)
Compares this
Coordinates with the specified Coordinates for order. |
void |
copyCoordinates(GeometryFactory geometryFactory,
double[] coordinates) |
double |
distance(double x,
double y) |
double |
distance(Point point)
Computes the 2-dimensional Euclidean distance to another location.
|
double |
distance3d(Point c)
Computes the 3-dimensional Euclidean distance to another location.
|
boolean |
equals(double... coordinates) |
boolean |
equals(Point point) |
boolean |
equals2d(Point point,
double tolerance)
Tests if another coordinate has the same values for the X and Y ordinates.
|
double |
getCoordinate(int axisIndex)
Gets the ordinate value for the given index.
|
double[] |
getCoordinates() |
double |
getM() |
long |
getTime() |
double |
getX() |
double |
getY() |
double |
getZ() |
Point |
move(double... deltas) |
Point |
normalize()
Converts this
Geometry to normal form (or
canonical form ). |
Point |
prepare() |
appendVertex, buffer, buffer, buffer, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, getBoundaryDimension, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getUserData, getVertex, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isEmpty, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, reverse, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypestatic final double NULL_ORDINATE
static final int X
static final int Y
static final int Z
double angle2d(Point other)
Point clone()
Point object.
(including all coordinates contained by it).Point clonePoint()
int compareTo(Object o)
Coordinates with the specified Coordinates for order.
This method ignores the z value when making the comparison.
Returns:
compareTo in interface Comparable<Object>compareTo in interface Geometryo - the Coordinate with which this Coordinate
is being comparedCoordinate
is less than, equal to, or greater than the specified Coordinatevoid copyCoordinates(GeometryFactory geometryFactory, double[] coordinates)
double distance(double x,
double y)
double distance(Point point)
c - a pointdouble distance3d(Point c)
c - a coordinateboolean equals(double... coordinates)
boolean equals(Point point)
boolean equals2d(Point point, double tolerance)
other - a Coordinate with which to do the 2D comparison.other is a Coordinate
with the same values for X and Y.double getCoordinate(int axisIndex)
axisIndex - the ordinate indexIllegalArgumentException - if the index is not validdouble[] getCoordinates()
double getM()
long getTime()
double getX()
double getY()
double getZ()
Point normalize()
GeometryGeometry to normal form (or
canonical form ). Normal form is a unique representation for Geometry
s. It can be used to test whether two Geometrys are equal
in a way that is independent of the ordering of the coordinates within
them. Normal form equality is a stronger condition than topological
equality, but weaker than pointwise equality. The definitions for normal
form use the standard lexicographical ordering for coordinates. "Sorted in
order of coordinates" means the obvious extension of this ordering to
sequences of coordinates.normalize in interface GeometryGeometry.normalize()Copyright © 2015 Revolution Systems Inc.. All rights reserved.