PointD
Contenu
[
Cacher
]Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class PointD extends Struct<PointD>
Le point double
Constructeurs
| Constructeur | Description |
|---|---|
| PointD() | |
| PointD(double x, double y) | Initialise une nouvelle instance de la structure PointD. |
Méthodes
| Méthode | Description |
|---|---|
| getX() | Obtient le x. |
| setX(double value) | Définit x. |
| getY() | Obtient le y. |
| setY(double value) | Définit y. |
| toPointF() | |
| fromPointF(PointF point) | Convertit PointD en la structure java.awt.geom.Point2D.Float. |
| toString() | Convertit en chaîne. |
| CloneTo(PointD that) | |
| Clone() | |
| equals(Object obj) | |
| hashCode() | |
| isEquals(PointD obj1, PointD obj2) |
PointD()
public PointD()
PointD(double x, double y)
public PointD(double x, double y)
Initialise une nouvelle instance de la structure PointD.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| x | double | La valeur x. |
| y | double | La valeur y. |
getX()
public final double getX()
Obtient le x.
Returns: double - le x.
setX(double value)
public final void setX(double value)
Définit x.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | double | le x. |
getY()
public final double getY()
Obtient le y.
Returns: double - le y.
setY(double value)
public final void setY(double value)
Définit y.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | double | le y. |
toPointF()
public final PointF toPointF()
Returns: PointF
fromPointF(PointF point)
public final void fromPointF(PointF point)
Convertit PointD en la structure java.awt.geom.Point2D.Float.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| point | PointF | La structure PointD. |
toString()
public String toString()
Convertit en chaîne.
Returns: java.lang.String - Une chaîne qui représente cette instance.
CloneTo(PointD that)
public void CloneTo(PointD that)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| that | PointD |
Clone()
public PointD Clone()
Returns: PointD
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
hashCode()
public int hashCode()
Returns: int
isEquals(PointD obj1, PointD obj2)
public static boolean isEquals(PointD obj1, PointD obj2)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| obj1 | PointD | |
| obj2 | PointD |
Returns: boolean