Class Point

All Implemented Interfaces:
AutoCloseable

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

    • Point Link icon

      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 Link icon

      public Point(@NotNull Point other)
  • Method Details Link icon

    • finalize Link icon

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

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

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

      @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 Link icon

      @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