Package 

Class Bounds


  • 
    public class Bounds
    
                        

    Represents an area in the cartesian plane.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final double minX
      public final double minY
      public final double maxX
      public final double maxY
      public final double midX
      public final double midY
    • Constructor Summary

      Constructors 
      Constructor Description
      Bounds(double minX, double maxX, double minY, double maxY)
    • Method Summary

      Modifier and Type Method Description
      boolean contains(double x, double y)
      boolean contains(Point point)
      boolean intersects(double minX, double maxX, double minY, double maxY)
      boolean intersects(Bounds bounds)
      boolean contains(Bounds bounds)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bounds

        Bounds(double minX, double maxX, double minY, double maxY)