Module swim.math
Package swim.math

Class Z2Box

    • Field Detail

      • xMin

        public final long xMin
      • yMin

        public final long yMin
      • xMax

        public final long xMax
      • yMax

        public final long yMax
    • Constructor Detail

      • Z2Box

        public Z2Box​(long xMin,
                     long yMin,
                     long xMax,
                     long yMax)
    • Method Detail

      • xMin

        public final long xMin()
        Specified by:
        xMin in class Z2Shape
      • yMin

        public final long yMin()
        Specified by:
        yMin in class Z2Shape
      • xMax

        public final long xMax()
        Specified by:
        xMax in class Z2Shape
      • yMax

        public final long yMax()
        Specified by:
        yMax in class Z2Shape
      • contains

        public boolean contains​(Z2Point point)
      • contains

        public boolean contains​(Z2Box box)
      • intersects

        public boolean intersects​(Z2Point point)
      • intersects

        public boolean intersects​(Z2Box box)
      • canEqual

        protected boolean canEqual​(Z2Box that)
      • hashCode

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

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • of

        public static Z2Box of​(long xMin,
                               long yMin,
                               long xMax,
                               long yMax)