PointD
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class PointD extends Struct<PointD>
The point double
Constructors
Constructor | Description |
---|---|
PointD() | |
PointD(double x, double y) | Initializes a new instance of the PointD struct. |
Methods
Method | Description |
---|---|
getX() | Gets the x. |
setX(double value) | Sets the x. |
getY() | Gets the y. |
setY(double value) | Sets the y. |
toPointF() | |
fromPointF(PointF point) | Converts PointD to the java.awt.geom.Point2D.Float structure. |
toString() | Converts to string. |
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)
Initializes a new instance of the PointD struct.
Parameters:
Parameter | Type | Description |
---|---|---|
x | double | The x value. |
y | double | The y value. |
getX()
public final double getX()
Gets the x.
Returns: double - the x.
setX(double value)
public final void setX(double value)
Sets the x.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | the x. |
getY()
public final double getY()
Gets the y.
Returns: double - the y.
setY(double value)
public final void setY(double value)
Sets the y.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | the y. |
toPointF()
public final PointF toPointF()
Returns: PointF
fromPointF(PointF point)
public final void fromPointF(PointF point)
Converts PointD to the java.awt.geom.Point2D.Float structure.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointD structure. |
toString()
public String toString()
Converts to string.
Returns: java.lang.String - A String that represents this instance.
CloneTo(PointD that)
public void CloneTo(PointD that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | PointD |
Clone()
public PointD Clone()
Returns: PointD
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | 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:
Parameter | Type | Description |
---|---|---|
obj1 | PointD | |
obj2 | PointD |
Returns: boolean