Class Rectangle

java.lang.Object
xyz.jpenilla.squaremap.api.marker.Marker
xyz.jpenilla.squaremap.api.marker.Rectangle

public final class Rectangle extends Marker
Rectangle marker
  • Method Details

    • points

      public void points(@NonNull Point point1, @NonNull Point point2)
    • point1

      public @NonNull Point point1()
      Get the first corner point for this rectangle
      Returns:
      point1
    • point1

      public void point1(@NonNull Point point)
      Set the first corner point for this rectangle
      Parameters:
      point - new point
    • point2

      public @NonNull Point point2()
      Get the second corner point for this rectangle
      Returns:
      point2
    • point2

      public void point2(@NonNull Point point)
      Set the second corner point for this rectangle
      Parameters:
      point - new point
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object