PointD Class

Summary: The point double

Module: aspose.imaging.fileformats.cdr.types

Full Name: aspose.imaging.fileformats.cdr.types.PointD

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
PointD()Initializes a new instance of the PointD class
PointD(x, y)Initializes a new instance of the PointD struct.

Properties

NameTypeAccessDescription
xdoubler/wGets or sets the x.
ydoubler/wGets or sets the y.

Methods

NameDescription
from_point_f(point)Converts PointD to the PointF structure.
to_point_f()Converts PointF to the PointD structure.

Constructor: PointD()

 PointD() 

Initializes a new instance of the PointD class

Constructor: PointD(x, y)

 PointD(x, y) 

Initializes a new instance of the PointD struct.

Parameters:

ParameterTypeDescription
xdoubleThe x value.
ydoubleThe y value.

Method: from_point_f(point)

 from_point_f(point) 

Converts PointD to the PointF structure.

Parameters:

ParameterTypeDescription
pointPointFThe PointD structure.

Method: to_point_f()

 to_point_f() 

Converts PointF to the PointD structure.

Returns

TypeDescription
PointFThe PointF structure