Module swim.math
Package swim.math

Class Z2Box

All Implemented Interfaces:
Debug, Shape

public class Z2Box extends Z2Shape implements Debug
  • Field Details

    • xMin

      public final long xMin
    • yMin

      public final long yMin
    • xMax

      public final long xMax
    • yMax

      public final long yMax
  • Constructor Details

    • Z2Box

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

    • 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(Z2Shape shape)
      Specified by:
      contains in class Z2Shape
    • contains

      public boolean contains(Z2Point point)
    • contains

      public boolean contains(Z2Box box)
    • intersects

      public boolean intersects(Z2Shape shape)
      Specified by:
      intersects in class Z2Shape
    • intersects

      public boolean intersects(Z2Point point)
    • intersects

      public boolean intersects(Z2Box box)
    • transform

      public R2Box transform(Z2ToR2Function f)
      Specified by:
      transform in class Z2Shape
    • toValue

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

      protected boolean canEqual(Z2Box that)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

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

      @Kind public static Z2Form<Z2Box> form()