PointF
Vue de l’ensemble
‘PointF’ est une classe dans Aspose.Slides FOSS pour Java.
Il représente un point 2D avec des coordonnées de flot.
Cette classe fournit 10 méthodes pour travailler avec des objets PointF dans les programmes Java. Les méthodologies disponibles comprennent: ‘PointF’, ’equals’, getX, ‘getY’, ‘hashCode’, ’isEmpty’, ‘setX’, ‚setY et 'toString'. Tous les membres publics sont accessibles à n'importe quelle application Java après l'installation de l’Aspose.Slides FOSS pour le package Java . Propriétés : 'EMPTY' , 'empty', ''x , ‘‘y`.
Propriétés
| 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). |
méthodes
| 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 |
Voir aussi
- Aspose.Slides - référence API d’entreprise