Module swim.math
Package swim.math

Class R2Shape

java.lang.Object
swim.math.R2Shape
All Implemented Interfaces:
Shape
Direct Known Subclasses:
R2Box, R2Circle, R2Point

public abstract class R2Shape extends Object implements Shape
  • Constructor Details

    • R2Shape

      public R2Shape()
  • Method Details

    • xMin

      public abstract double xMin()
    • yMin

      public abstract double yMin()
    • xMax

      public abstract double xMax()
    • yMax

      public abstract double yMax()
    • contains

      public boolean contains(Shape shape)
      Specified by:
      contains in interface Shape
    • intersects

      public boolean intersects(Shape shape)
      Specified by:
      intersects in interface Shape
    • contains

      public abstract boolean contains(R2Shape shape)
    • intersects

      public abstract boolean intersects(R2Shape shape)
    • transform

      public abstract Z2Shape transform(R2ToZ2Function f)
    • shapeForm

      @Kind public static R2Form<R2Shape> shapeForm()