Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Fields | |
| static const point_f | empty |
| Represents a xtd::drawing::point_f that has xtd::drawing::point_f::x and xtd::drawing::point_f::y values set to zero. More... | |
Constructors | |
| point_f () noexcept=default | |
| Initializes a new instance of the xtd::drawing::point_f class. More... | |
| point_f (float x, float y) noexcept | |
| Initializes a new instance of the xtd::drawing::point_f class with the specified coordinates. More... | |
| point_f (const size_f &sz) noexcept | |
| Initializes a new instance of the xtd::drawing::point_t class from a xtd::drawing::size_f. More... | |
Properties | |
| bool | is_empty () const noexcept |
| Gets a value indicating whether this xtd::drawing::point_f is empty. More... | |
| float | x () const noexcept |
| Gets the x-coordinate of this xtd::drawing::point_f. More... | |
| void | x (float x) noexcept |
| Sets the x-coordinate of this xtd::drawing::point_f. More... | |
| float | y () const noexcept |
| Gets the y-coordinate of this xtd::drawing::point_f. More... | |
| void | y (float y) noexcept |
| Sets the y-coordinate of this xtd::drawing::point_f. More... | |
Methods | |
| bool | equals (const point_f &value) const noexcept override |
| void | offset (float dx, float dy) noexcept |
| Translates this xtd::drawing::point_f by the specified amount. More... | |
| void | offset (const point_f &pt) noexcept |
| Translates this xtd::drawing::point_f by the specified xtd::drawing::point_f. More... | |
| xtd::ustring | to_string () const noexcept override |
| Converts this point to a human-readable string. More... | |
| static point_f | add (const point_f &pt, const size &sz) noexcept |
| Adds the specified xtd::drawing::size to the specified xtd::drawing::point_f. More... | |
| static point_f | add (const point_f &pt, const size_f &sz) noexcept |
| Adds the specified xtd::drawing::size_f to the specified xtd::drawing::point_f. More... | |
| static point_f | add (const point_f &pt1, const point &pt2) noexcept |
| Adds the specified xtd::drawing::point to the specified xtd::drawing::point_f. More... | |
| static point_f | add (const point_f &pt1, const point_f &pt2) noexcept |
| Adds the specified xtd::drawing::point_f to the specified xtd::drawing::point_f. More... | |
| static point_f | subtract (const point_f &pt, const size &sz) noexcept |
| Returns the result of subtracting specified xtd::drawing::size from the specified xtd::drawing::point_f. More... | |
| static point_f | subtract (const point_f &pt, const size_f &sz) noexcept |
| Returns the result of subtracting specified xtd::drawing::size_f from the specified xtd::drawing::point_f. More... | |
| static point_f | subtract (const point_f &pt1, const point &pt2) noexcept |
| Returns the result of subtracting specified xtd::drawing::point from the specified xtd::drawing::point. More... | |
| static point_f | subtract (const point_f &pt1, const point_f &pt2) noexcept |
| Returns the result of subtracting specified xtd::drawing::point from the specified xtd::drawing::point. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
Public Member Functions inherited from xtd::iequatable< point_f > | |
| virtual bool | equals (const point_f &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
|
defaultnoexcept |
Initializes a new instance of the xtd::drawing::point_f class.
|
noexcept |
Initializes a new instance of the xtd::drawing::point_f class with the specified coordinates.
| x | The horizontal position of the point. |
| y | The vertical position of the point. |
|
explicitnoexcept |
Initializes a new instance of the xtd::drawing::point_t class from a xtd::drawing::size_f.
| sz | A size that specifies the coordinates for the new point. |
Adds the specified xtd::drawing::size to the specified xtd::drawing::point_f.
| pt | The xtd::drawing::point_f to add. |
| sz | The xtd::drawing::size to add. |
Adds the specified xtd::drawing::size_f to the specified xtd::drawing::point_f.
| pt | The xtd::drawing::point_f to add. |
| sz | The xtd::drawing::size_f to add. |
Adds the specified xtd::drawing::point to the specified xtd::drawing::point_f.
| pt1 | The xtd::drawing::point_f to add. |
| pt2 | The xtd::drawing::point to add. |
|
staticnoexcept |
Adds the specified xtd::drawing::point_f to the specified xtd::drawing::point_f.
| pt1 | The xtd::drawing::point_f to add. |
| pt2 | The xtd::drawing::point_f to add. |
|
noexcept |
Gets a value indicating whether this xtd::drawing::point_f is empty.
|
noexcept |
Translates this xtd::drawing::point_f by the specified amount.
| dx | The amount to offset the x-coordinate. |
| dy | The amount to offset the y-coordinate. |
|
noexcept |
Translates this xtd::drawing::point_f by the specified xtd::drawing::point_f.
| p | The xtd::drawing::point used offset this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::size.
| sz | A xtd::drawing::size that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::size_f.
| sz | A xtd::drawing::size_f that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::point.
| pt | A xtd::drawing::point that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::point_f.
| pt | A xtd::drawing::size that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::size.
| sz | A xtd::drawing::size that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::size_f.
| sz | A xtd::drawing::size_f that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::point.
| pt | A xtd::drawing::point that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by a given xtd::drawing::point_f.
| pt | A xtd::drawing::point_f that specifies the pair of numbers to add to the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size.
| sz | A xtd::drawing::size that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size_f.
| sz | A xtd::drawing::size_f that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point.
| pt | A xtd::drawing::point that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point. |
Translates a xtd::drawing::point by the negative of a given xtd::drawing::point.
| pt | A xtd::drawing::point that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size.
| sz | A xtd::drawing::size that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size_f.
| sz | A xtd::drawing::size_f that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point.
| pt | A xtd::drawing::point that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point_f.
| pt | A xtd::drawing::point_f that specifies the pair of numbers to subtract from the coordinates of this xtd::drawing::point_f. |
|
staticnoexcept |
Returns the result of subtracting specified xtd::drawing::size from the specified xtd::drawing::point_f.
| pt | The xtd::drawing::point_f to be subtracted from. |
| sz | The xtd::drawing::size to subtract from the xtd::drawing::point. |
|
staticnoexcept |
Returns the result of subtracting specified xtd::drawing::size_f from the specified xtd::drawing::point_f.
| pt | The xtd::drawing::point_f to be subtracted from. |
| sz | The xtd::drawing::size_f to subtract from the xtd::drawing::point. |
|
staticnoexcept |
Returns the result of subtracting specified xtd::drawing::point from the specified xtd::drawing::point.
| pt1 | The xtd::drawing::point_f to be subtracted from. |
| pt2 | The xtd::drawing::point to subtract from the xtd::drawing::point_f. |
|
staticnoexcept |
Returns the result of subtracting specified xtd::drawing::point from the specified xtd::drawing::point.
| pt1 | The xtd::drawing::point_f to be subtracted from. |
| pt2 | The xtd::drawing::point_f to subtract from the xtd::drawing::point_f. |
|
overridevirtualnoexcept |
Converts this point to a human-readable string.
Reimplemented from xtd::object.
|
noexcept |
Gets the x-coordinate of this xtd::drawing::point_f.
|
noexcept |
Sets the x-coordinate of this xtd::drawing::point_f.
| x | The x-coordinate of this xtd::drawing::point_f. |
|
noexcept |
Gets the y-coordinate of this xtd::drawing::point_f.
|
noexcept |
Sets the y-coordinate of this xtd::drawing::point_f.
| y | The x-coordinate of this xtd::drawing::point_f. |
|
static |
Represents a xtd::drawing::point_f that has xtd::drawing::point_f::x and xtd::drawing::point_f::y values set to zero.