Package com.luciad.geometries
Class Point
java.lang.Object
com.luciad.geometries.Geometry
com.luciad.geometries.Point
- All Implemented Interfaces:
AutoCloseable
Represents a point.
- See Also:
-
Constructor Summary
ConstructorDescriptionPoint
(CoordinateReference reference, Coordinate coordinate) Constructs a point with a reference and a coordinate. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the coordinate of the location.moveTo
(Coordinate location) Returns a new Point instance which is moved to the new coordinate location.translate
(Coordinate translation) Returns a new Point instance with the translation vector applied.Methods inherited from class com.luciad.geometries.Geometry
getBounds, getReference
-
Constructor Details
-
Point
Constructs a point with a reference and a coordinate.- Parameters:
reference
- the reference of the point.coordinate
- the coordinate values of the point.
-
Point
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classGeometry
-
getLocation
Returns the coordinate of the location.- Returns:
- the coordinate of the location.
-
translate
Returns a new Point instance with the translation vector applied.- Parameters:
translation
- the translation vector- Returns:
- a new, translated geometry
-
moveTo
Returns a new Point instance which is moved to the new coordinate location.- Parameters:
location
- the new location to move this point to- Returns:
- a new, moved geometry
-