Class BoundingBox

java.lang.Object
ai.runapi.wan.types.BoundingBox

public final class BoundingBox extends Object
Bounding box coordinates in [x1, y1, x2, y2] order.
  • Method Details

    • of

      public static BoundingBox of(int x1, int y1, int x2, int y2)
      Creates a bounding box from corner coordinates.
    • getX1

      public int getX1()
      Returns the left coordinate.
    • getY1

      public int getY1()
      Returns the top coordinate.
    • getX2

      public int getX2()
      Returns the right coordinate.
    • getY2

      public int getY2()
      Returns the bottom coordinate.