public class Point2DZ extends Point2D implements Point
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
COORDINATES_FIELD, x, y
geometryType, geomManager, id, logger, projection
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Constructor and Description |
---|
Point2DZ(double x,
double y,
double z) |
Point2DZ(double x,
double y,
double z,
GeometryType geometryType) |
Point2DZ(GeometryType geomType)
The constructor with the GeometryType like and argument is used by the
GeometryType #create() to create the geometry |
Modifier and Type | Method and Description |
---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
boolean |
equals(Object other) |
double |
getCoordinateAt(int dimension)
Gets the coordinate in a concrete dimension
|
double[] |
getCoordinates()
Returns an array of coordinates.
|
int |
getDimension()
Returns the largest number n such that each direct position in a
geometric set can be associated with a subset that has the direct
position in its interior and is similar (isomorphic) to Rn, Euclidean
n-space.
|
protected String |
getFullTypeName() |
double |
getOrdinate(int dimension)
Returns the ordinate of the given dimension.
|
int |
getShapeType()
Gets the geometry type of this shape.
|
void |
setCoordinateAt(int dimension,
double value)
Sets a ordinate in a concrete dimension
|
void |
setCoordinates(double[] values)
Sets the point coordinates
|
contains, contains, contains, contains, getBounds, getBounds2D, getDirectPosition, getEnvelope, getGeneralPath, getPathIterator, getPathIterator, getSelectHandlers, getShape, getStretchingHandlers, getType, getX, getY, intersects, intersects, reProject, setX, setY, toPoints, toString, transform
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getShape, getSRS, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, touches, transform, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDirectPosition, getX, getY, setX, setY
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
public static final String PERSISTENCE_DEFINITION_NAME
public Point2DZ(GeometryType geomType)
GeometryType
#create()
to create the geometrytype
- The geometry typepublic Point2DZ(double x, double y, double z, GeometryType geometryType)
public Point2DZ(double x, double y, double z)
public int getShapeType()
FShape
getShapeType
in interface FShape
getShapeType
in class Point2D
public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
cloneFShape
in class Point2D
public int getDimension()
Geometry
getDimension
in interface DirectPosition
getDimension
in interface Geometry
getDimension
in class Point2D
public void setCoordinates(double[] values)
Point
setCoordinates
in interface Point
setCoordinates
in class Point2D
public void setCoordinateAt(int dimension, double value)
Point
setCoordinateAt
in interface Point
setCoordinateAt
in class Point2D
dimension
- The dimension to setvalue
- The value to setpublic double getCoordinateAt(int dimension)
Point
getCoordinateAt
in interface Point
getCoordinateAt
in class Point2D
dimension
- The ordinate dimensionpublic double getOrdinate(int dimension)
DirectPosition
getOrdinate
in interface DirectPosition
getOrdinate
in class Point2D
dimension
- The dimension to retrievepublic double[] getCoordinates()
Point
#setCoordinateAt(int, double))
, #setX(double))
or #setY(double))
methods instead.getCoordinates
in interface Point
getCoordinates
in class Point2D
protected String getFullTypeName()
getFullTypeName
in class Point2D