PointD

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public class PointD extends Struct<PointD>

The point double

Constructors

ConstructorDescription
PointD()
PointD(double x, double y)Initializes a new instance of the PointD struct.

Methods

MethodDescription
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:

ParameterTypeDescription
xdoubleThe x value.
ydoubleThe 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:

ParameterTypeDescription
valuedoublethe 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:

ParameterTypeDescription
valuedoublethe 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:

ParameterTypeDescription
pointPointFThe 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:

ParameterTypeDescription
thatPointD

Clone()

public PointD Clone()

Returns: PointD

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

hashCode()

public int hashCode()

Returns: int

isEquals(PointD obj1, PointD obj2)

public static boolean isEquals(PointD obj1, PointD obj2)

Parameters:

ParameterTypeDescription
obj1PointD
obj2PointD

Returns: boolean