Package ai.runapi.wan.types
Class BoundingBox
java.lang.Object
ai.runapi.wan.types.BoundingBox
Bounding box coordinates in [x1, y1, x2, y2] order.
-
Method Summary
Modifier and TypeMethodDescriptionintgetX1()Returns the left coordinate.intgetX2()Returns the right coordinate.intgetY1()Returns the top coordinate.intgetY2()Returns the bottom coordinate.static BoundingBoxof(int x1, int y1, int x2, int y2) Creates a bounding box from corner coordinates.
-
Method Details
-
of
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.
-