public final class Point extends Geometry implements AutoCloseable
GeometryFactory#createPoint
,
Point#Point
Constructor and Description |
---|
Point(CoordinateReference reference,
Coordinate coordinate)
Constructs a point with a reference and a coordinate.
|
Point(Point other) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
Coordinate |
getLocation()
Returns the coordinate of the location.
|
Point |
moveTo(Coordinate location)
Returns a new Point instance which is moved to the new coordinate location.
|
Point |
translate(Coordinate translation)
Returns a new Point instance with the translation vector applied.
|
getBounds, getReference
public Point(@NotNull CoordinateReference reference, @NotNull Coordinate coordinate)
reference
- the reference of the point.coordinate
- the coordinate values of the point.public Point(@NotNull Point other)
public void close()
close
in interface AutoCloseable
close
in class Geometry
@NotNull public Coordinate getLocation()
@NotNull public Point translate(@NotNull Coordinate translation)
translation
- the translation vector@NotNull public Point moveTo(@NotNull Coordinate location)
location
- the new location to move this point to