PointF

Overview

PointF is a class in Aspose.Slides FOSS for Java.

Represents a 2D point with float coordinates.

Properties

NameTypeAccessDescription
xfloatReadGets the X coordinate.
yfloatReadGets the Y coordinate.
emptybooleanReadReturns {@code true} if both coordinates are zero.
EMPTYPointFReadEmpty point with coordinates (0, 0).

Methods

SignatureDescription
PointF(x: float, y: float)Initializes a new instance of PointF with the specified coordinates.
PointF()Initializes a new instance of PointF with coordinates (0, 0).
getX()floatGets the X coordinate.
setX(x: float)Sets the X coordinate.
getY()floatGets the Y coordinate.
setY(y: float)Sets the Y coordinate.
isEmpty()booleanReturns {@code true} if both coordinates are zero.
equals(obj: Object)booleanDetermines whether the given object is a PointF with equal coordinates
hashCode()intReturns a hash code based on the point’s coordinates
toString()StringReturns a string representation of the point’s coordinates

See Also