java.lang.Object
net.buildtheearth.terracore.worldgen.dataset.geojson.geometry.Point
All Implemented Interfaces:
GeoJsonObject, Geometry

public final class Point extends Object implements Geometry
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final double
     
    protected final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Point(double lon, double lat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.buildtheearth.terracore.geo.bvh.Bounds2d
     
    boolean
     
    int
     
    double
    lat()
     
    double
    lon()
     
    project(@NonNull net.buildtheearth.terracore.geo.projection.ProjectionFunction projection)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • lon

      protected final double lon
    • lat

      protected final double lat
  • Constructor Details

    • Point

      public Point(double lon, double lat)
  • Method Details

    • project

      public Point project(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.ProjectionFunction projection) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      Specified by:
      project in interface Geometry
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
    • bounds

      public net.buildtheearth.terracore.geo.bvh.Bounds2d bounds()
      Specified by:
      bounds in interface Geometry
    • lon

      public double lon()
    • lat

      public double lat()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object