Class BoxBuilder

java.lang.Object
com.geodesk.geom.BoxBuilder
All Implemented Interfaces:
Bounds

public class BoxBuilder extends Object implements Bounds
  • Constructor Details

    • BoxBuilder

      public BoxBuilder()
  • Method Details

    • reset

      public void reset()
    • isNull

      public boolean isNull()
    • minX

      public int minX()
      Specified by:
      minX in interface Bounds
    • minY

      public int minY()
      Specified by:
      minY in interface Bounds
    • maxX

      public int maxX()
      Specified by:
      maxX in interface Bounds
    • maxY

      public int maxY()
      Specified by:
      maxY in interface Bounds
    • expandToInclude

      public void expandToInclude(int x, int y)
      Checks if this bounding box includes the given coordinate, and expands it if necessary. If this bounding box straddles the Antimeridian, the results of this method are undefined (as it cannot tell in which direction the box should be expanded).
      Parameters:
      x - X-coordinate
      y - Y-coordinate
    • expandToInclude

      public void expandToInclude(Bounds b)
      Checks if this bounding box includes another bounding box, and expands it if necessary. If either bounding box straddles the Antimeridian, the results of this method are undefined (as it cannot tell in which direction the box should be expanded).
      Parameters:
      b - the bounding box to include into this