Module swim.math
Package swim.math

Class R2Box

All Implemented Interfaces:
Debug, Shape

public class R2Box extends R2Shape implements Debug
  • Field Details

    • xMin

      public final double xMin
    • yMin

      public final double yMin
    • xMax

      public final double xMax
    • yMax

      public final double yMax
  • Constructor Details

    • R2Box

      public R2Box(double xMin, double yMin, double xMax, double yMax)
  • Method Details

    • xMin

      public final double xMin()
      Specified by:
      xMin in class R2Shape
    • yMin

      public final double yMin()
      Specified by:
      yMin in class R2Shape
    • xMax

      public final double xMax()
      Specified by:
      xMax in class R2Shape
    • yMax

      public final double yMax()
      Specified by:
      yMax in class R2Shape
    • contains

      public boolean contains(R2Shape shape)
      Specified by:
      contains in class R2Shape
    • contains

      public boolean contains(R2Point point)
    • contains

      public boolean contains(R2Box box)
    • contains

      public boolean contains(R2Circle circle)
    • intersects

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

      public boolean intersects(R2Point point)
    • intersects

      public boolean intersects(R2Box box)
    • intersects

      public boolean intersects(R2Circle circle)
    • transform

      public Z2Box transform(R2ToZ2Function f)
      Specified by:
      transform in class R2Shape
    • toValue

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

      protected boolean canEqual(R2Box 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 R2Box of(double xMin, double yMin, double xMax, double yMax)
    • form

      @Kind public static R2Form<R2Box> form()