PointD 类

Summary: The point double

Module: aspose.imaging.fileformats.cdr.types

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

Constructors

Name描述
PointD()初始化 PointD 类的新实例
PointD(x, y)初始化 PointD 结构的新实例。

Properties

NameTypeAccess描述
xfloatr/w获取或设置 x。
yfloatr/w获取或设置 y。

Methods

Name描述
from_point_f(point)PointD 转换为 PointF 结构。
to_point_f()PointF 转换为 PointD 结构。

Constructor: PointD()

 PointD() 

初始化 PointD 类的新实例

Constructor: PointD(x, y)

 PointD(x, y) 

初始化 PointD 结构的新实例。

Parameters:

参数TypeDescription
xfloatx 值。
yfloaty 值。

Method: from_point_f(point)

 from_point_f(point) 

PointD 转换为 PointF 结构。

Parameters:

参数TypeDescription
pointPointFPointD 结构。

Method: to_point_f()

 to_point_f() 

PointF 转换为 PointD 结构。

Returns

TypeDescription
PointFPointF 结构