Class SmallRect


  • public class SmallRect
    extends java.lang.Object
    A custom variation of a rectangle, which stores the required values as short instead of int, thus saving some space.
    • Constructor Summary

      Constructors 
      Constructor Description
      SmallRect​(int x, int y, int width, int height)  
    • Constructor Detail

      • SmallRect

        public SmallRect​(int x,
                         int y,
                         int width,
                         int height)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • intersects

        public boolean intersects​(SmallRect rect)
      • intersects

        public boolean intersects​(int x,
                                  int y,
                                  int width,
                                  int height)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object