PointF Class
Contents
[
Hide
]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.9.0
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. |
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:
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 |
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 |
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 |
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 |
Returns
Type | Description |
---|---|
PointF | The translated PointF. |