PointF Class

Summary: Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

Module: aspose.psd

Full Name: aspose.psd.PointF

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
PointF()Initializes a new instance of the PointF class
PointF(x, y)Initializes a new instance of the PointF structure with the specified coordinates.

Properties

NameTypeAccessDescription
empty [static]PointFrGets a new instance of the PointF structure that has PointF.x and PointF.y values set to zero.
is_emptyboolrGets a value indicating whether this PointF is empty.
xfloatr/wGets or sets the x-coordinate of this PointF.
yfloatr/wGets or sets the y-coordinate of this PointF.

Methods

NameDescription
add(point, size)Translates a given PointF by the specified Size.
add(point, size)Translates a given PointF by the specified Size.
subtract(point, size)Translates a PointF by the negative of a specified size.
subtract(point, size)Translates a PointF by the negative of a specified size.

Constructor: PointF()

 PointF() 

Initializes a new instance of the PointF class

Constructor: PointF(x, y)

 PointF(x, y) 

Initializes a new instance of the PointF structure with the specified coordinates.

Parameters:

ParameterTypeDescription
xfloatThe horizontal position of the point.
yfloatThe vertical position of the point.

Method: add(point, size) [static]

 add(point, size) 

Translates a given PointF by the specified Size.

Parameters:

ParameterTypeDescription
pointPointFThe PointF to translate.
sizeSizeThe Size that specifies the numbers to add to the coordinates of .

Returns

TypeDescription
PointFThe translated PointF.

Method: add(point, size) [static]

 add(point, size) 

Translates a given PointF by the specified Size.

Parameters:

ParameterTypeDescription
pointPointFThe PointF to translate.
sizeSizeFThe Size that specifies the numbers to add to the coordinates of .

Returns

TypeDescription
PointFThe translated PointF.

Method: subtract(point, size) [static]

 subtract(point, size) 

Translates a PointF by the negative of a specified size.

Parameters:

ParameterTypeDescription
pointPointFThe PointF to translate.
sizeSizeThe Size that specifies the numbers to subtract from the coordinates of .

Returns

TypeDescription
PointFThe translated PointF.

Method: subtract(point, size) [static]

 subtract(point, size) 

Translates a PointF by the negative of a specified size.

Parameters:

ParameterTypeDescription
pointPointFThe PointF to translate.
sizeSizeFThe Size that specifies the numbers to subtract from the coordinates of .

Returns

TypeDescription
PointFThe translated PointF.