RectangleF Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. RectangleF
- com.
public final class RectangleF
Represents an axis-aligned rectangle with float-precision coordinates. Used by DocumentSource as the bounding box computed from polygon coordinates.
Constructor Summary
| Constructor | Description |
|---|---|
| RectangleF(float x, float y, float width, float height) |
Creates a new RectangleF. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean | equals(Object obj) |
| float |
getHeight()
Gets the height of the rectangle. |
| float |
getWidth()
Gets the width of the rectangle. |
| float |
getX()
Gets the x-coordinate of the top-left corner. |
| float |
getY()
Gets the y-coordinate of the top-left corner. |
| int | hashCode() |
| String | toString() |
Methods inherited from java.lang.Object
Constructor Details
RectangleF
public RectangleF(float x, float y, float width, float height)
Creates a new RectangleF.
Parameters:
Method Details
equals
public boolean equals(Object obj)
Overrides:
RectangleF.equals(Object obj)Parameters:
getHeight
public float getHeight()
Gets the height of the rectangle.
Returns:
getWidth
public float getWidth()
Gets the width of the rectangle.
Returns:
getX
public float getX()
Gets the x-coordinate of the top-left corner.
Returns:
getY
public float getY()
Gets the y-coordinate of the top-left corner.
Returns:
hashCode
public int hashCode()
Overrides:
RectangleF.hashCode()toString
public String toString()
Overrides:
RectangleF.toString()