Class Point

All Implemented Interfaces:
AutoCloseable

public final class Point extends Geometry implements AutoCloseable
Represents a point.
See Also:
  • Constructor Details

    • Point

      public Point(@NotNull CoordinateReference reference, @NotNull Coordinate coordinate)
      Constructs a point with a reference and a coordinate.
      Parameters:
      reference - the reference of the point.
      coordinate - the coordinate values of the point.
    • Point

      public Point(@NotNull Point other)
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Geometry
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Geometry
    • getLocation

      @NotNull public Coordinate getLocation()
      Returns the coordinate of the location.
      Returns:
      the coordinate of the location.
    • translate

      @NotNull public Point translate(@NotNull Coordinate translation)
      Returns a new Point instance with the translation vector applied.
      Parameters:
      translation - the translation vector
      Returns:
      a new, translated geometry
    • moveTo

      @NotNull public Point moveTo(@NotNull Coordinate location)
      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