Class Rectangle

java.lang.Object
com.hypixel.hytale.math.shape.Rectangle

public class Rectangle extends Object
  • Field Details

  • Constructor Details

    • Rectangle

      public Rectangle()
    • Rectangle

      public Rectangle(double minX, double minY, double maxX, double maxY)
    • Rectangle

      public Rectangle(Vector2d min, Vector2d max)
    • Rectangle

      public Rectangle(@Nonnull Rectangle other)
  • Method Details

    • getMin

      public Vector2d getMin()
    • getMax

      public Vector2d getMax()
    • getMinX

      public double getMinX()
    • getMinY

      public double getMinY()
    • getMaxX

      public double getMaxX()
    • getMaxY

      public double getMaxY()
    • assign

      @Nonnull public Rectangle assign(double minX, double minY, double maxX, double maxY)
    • hasArea

      public boolean hasArea()
    • equals

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

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

      @Nonnull public String toString()
      Overrides:
      toString in class Object