Module swim.math
Package swim.math

Class BoxZ2

  • All Implemented Interfaces:
    swim.codec.Debug, Shape

    public class BoxZ2
    extends Z2Shape
    implements swim.codec.Debug
    • Field Detail

      • xMin

        public final long xMin
      • yMin

        public final long yMin
      • xMax

        public final long xMax
      • yMax

        public final long yMax
    • Constructor Detail

      • BoxZ2

        public BoxZ2​(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​(PointZ2 point)
      • contains

        public boolean contains​(BoxZ2 box)
      • intersects

        public boolean intersects​(PointZ2 point)
      • intersects

        public boolean intersects​(BoxZ2 box)
      • toValue

        public swim.structure.Value toValue()
        Specified by:
        toValue in interface Shape
      • canEqual

        protected boolean canEqual​(BoxZ2 that)
      • hashCode

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

        public void debug​(swim.codec.Output<?> output)
        Specified by:
        debug in interface swim.codec.Debug
      • of

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