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
Name | Description |
---|---|
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
Name | Type | Access | Description |
---|---|---|---|
empty [static] | PointF | r | Gets a new instance of the PointF structure that has PointF.x and PointF.y values set to zero. |
is_empty | bool | r | Gets a value indicating whether this PointF is empty. |
x | float | r/w | Gets or sets the x-coordinate of this PointF. |
y | float | r/w | Gets or sets the y-coordinate of this PointF. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
x | float | The horizontal position of the point. |
y | float | The vertical position of the point. |
Method: add(point, size) [static]
add(point, size)
Translates a given PointF by the specified Size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | Size | The Size that specifies the numbers to add to the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: add(point, size) [static]
add(point, size)
Translates a given PointF by the specified Size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | SizeF | The Size that specifies the numbers to add to the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: add_size(point, size) [static]
add_size(point, size)
Translates a given PointF by the specified Size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | Size | The Size that specifies the numbers to add to the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: add_size_f(point, size) [static]
add_size_f(point, size)
Translates a given PointF by a specified SizeF.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | SizeF | The SizeF that specifies the numbers to add to the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: subtract(point, size) [static]
subtract(point, size)
Translates a PointF by the negative of a specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | Size | The Size that specifies the numbers to subtract from the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: subtract(point, size) [static]
subtract(point, size)
Translates a PointF by the negative of a specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | SizeF | The Size that specifies the numbers to subtract from the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |
Method: subtract_size(point, size) [static]
subtract_size(point, size)
Translates a PointF by the negative of a specified size.
Parameters:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | Size | The Size that specifies the numbers to subtract from the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The 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:
Parameter | Type | Description |
---|---|---|
point | PointF | The PointF to translate. |
size | SizeF | The SizeF that specifies the numbers to subtract from the coordinates of point. |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |