Class Overlappable

java.lang.Object
redempt.redlib.region.Region
redempt.redlib.region.Overlappable
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CuboidRegion, MultiRegion

public abstract class Overlappable extends Region
Represents a Region which supports the overlap and intersect operations
  • Constructor Details

    • Overlappable

      public Overlappable()
  • Method Details

    • overlaps

      public abstract boolean overlaps(Overlappable other)
      Checks whether this Overlappable overlaps another Overlappable
      Parameters:
      other - The Overlappable Region to check
      Returns:
      Whether this Overlappable overlaps the given Overlappable
    • getIntersection

      public abstract Region getIntersection(Overlappable other)
      Gets the intersection of this Overlappable with another
      Parameters:
      other - The Overlappable Region to check
      Returns:
      The intersection of this Region with the provided Overlappable Region