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.imaging

Full Name: aspose.imaging.PointF

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.
add_size(point, size)Translates a given PointF by the specified Size.
add_size_f(point, size)Translates a given PointF by a specified SizeF.
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.
subtract_size(point, size)Translates a PointF by the negative of a specified size.
subtract_size_f(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 point.

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 point.

Returns

TypeDescription
PointFThe translated PointF.

Method: add_size(point, size) [static]

 add_size(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 point.

Returns

TypeDescription
PointFThe translated PointF.

Method: add_size_f(point, size) [static]

 add_size_f(point, size) 

Translates a given PointF by a specified SizeF.

Parameters:

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

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 point.

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 point.

Returns

TypeDescription
PointFThe translated PointF.

Method: subtract_size(point, size) [static]

 subtract_size(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 point.

Returns

TypeDescription
PointFThe translated PointF.

Method: subtract_size_f(point, size) [static]

 subtract_size_f(point, size) 

Translates a PointF by the negative of a specified size.

Parameters:

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

Returns

TypeDescription
PointFThe translated PointF.