Freigeben über


RectangleF Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.RectangleF

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:

x - The x-coordinate of the top-left corner.
y - The y-coordinate of the top-left corner.
width - The width of the rectangle.
height - The height of the rectangle.

Method Details

equals

public boolean equals(Object obj)

Overrides:

RectangleF.equals(Object obj)

Parameters:

obj

getHeight

public float getHeight()

Gets the height of the rectangle.

Returns:

The height.

getWidth

public float getWidth()

Gets the width of the rectangle.

Returns:

The width.

getX

public float getX()

Gets the x-coordinate of the top-left corner.

Returns:

The x-coordinate.

getY

public float getY()

Gets the y-coordinate of the top-left corner.

Returns:

The y-coordinate.

hashCode

public int hashCode()

Overrides:

RectangleF.hashCode()

toString

public String toString()

Overrides:

RectangleF.toString()

Applies to