Class Point

java.lang.Object
xyz.jpenilla.squaremap.api.Point

public final class Point extends Object
Represents a point on a map in the XZ plane. May be relative or absolute depending on the context
  • Method Details

    • x

      public double x()
      Get the x position of this point
      Returns:
      x
    • z

      public double z()
      Get the z position of this point
      Returns:
      z
    • of

      public static @NonNull Point of(double x, double z)
      Create a new point from an x and z position
      Parameters:
      x - x position
      z - z position
      Returns:
      point
    • point

      public static @NonNull Point point(double x, double z)
      Create a new point from an x and z position
      Parameters:
      x - x position
      z - z position
      Returns:
      point
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object