---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/PointF
---

# PointF

## Overview

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

Represents a 2D point with float coordinates.

This class provides 10 methods for working with PointF objects in Java programs.
Available methods include: `PointF`, `equals`, `getX`, `getY`, `hashCode`, `isEmpty`, `setX`, `setY`, `toString`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `EMPTY`, `empty`, `x`, `y`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `x` | `float` | Read | Gets the X coordinate. |
| `y` | `float` | Read | Gets the Y coordinate. |
| `empty` | `boolean` | Read | Returns {@code true} if both coordinates are zero. |
| `EMPTY` | `PointF` | Read | Empty point with coordinates (0, 0). |

## Methods

| Signature | Description |
|-----------|-------------|
| `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()` → `float` | Gets the X coordinate. |
| `setX(x: float)` | Sets the X coordinate. |
| `getY()` → `float` | Gets the Y coordinate. |
| `setY(y: float)` | Sets the Y coordinate. |
| `isEmpty()` → `boolean` | Returns {@code true} if both coordinates are zero. |
| `equals(obj: Object)` → `boolean` | Determines whether the given object is a PointF with equal coordinates |
| `hashCode()` → `int` | Returns a hash code based on the point's coordinates |
| `toString()` → `String` | Returns a string representation of the point's coordinates |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)