Share via


PointF Class

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

public final class PointF

Represents a point with float-precision x and y coordinates. Used by DocumentSource to define polygon vertices in document coordinate space.

Constructor Summary

Constructor Description
PointF(float x, float y)

Creates a new PointF.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)
float getX()

Gets the x-coordinate.

float getY()

Gets the y-coordinate.

int hashCode()
String toString()

Methods inherited from java.lang.Object

Constructor Details

PointF

public PointF(float x, float y)

Creates a new PointF.

Parameters:

x - The x-coordinate.
y - The y-coordinate.

Method Details

equals

public boolean equals(Object obj)

Overrides:

PointF.equals(Object obj)

Parameters:

obj

getX

public float getX()

Gets the x-coordinate.

Returns:

The x-coordinate.

getY

public float getY()

Gets the y-coordinate.

Returns:

The y-coordinate.

hashCode

public int hashCode()

Overrides:

PointF.hashCode()

toString

public String toString()

Overrides:

PointF.toString()

Applies to