Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Public 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.   | |
Public Constructors | |
| point_f () noexcept=default | |
| Initializes a new instance of the xtd::drawing::point_f class.   | |
| point_f (float x, float y) noexcept | |
| Initializes a new instance of the xtd::drawing::point_f class with the specified coordinates.   | |
| point_f (const size_f &sz) noexcept | |
| Initializes a new instance of the xtd::drawing::point_t class from a xtd::drawing::size_f.   | |
Public Properties | |
| bool | is_empty () const noexcept | 
| Gets a value indicating whether this xtd::drawing::point_f is empty.   | |
| float | x () const noexcept | 
| Gets the x-coordinate of this xtd::drawing::point_f.   | |
| void | x (float x) noexcept | 
| Sets the x-coordinate of this xtd::drawing::point_f.   | |
| float | y () const noexcept | 
| Gets the y-coordinate of this xtd::drawing::point_f.   | |
| void | y (float y) noexcept | 
| Sets the y-coordinate of this xtd::drawing::point_f.   | |
Public 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.   | |
| void | offset (const point_f &pt) noexcept | 
| Translates this xtd::drawing::point_f by the specified xtd::drawing::point_f.   | |
| xtd::string | to_string () const noexcept override | 
| Converts this point to a human-readable string.   | |
| virtual bool | equals (const object &obj) const noexcept | 
| Determines whether the specified object is equal to the current object.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| 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.   | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are considered equal.   | |
Operators | |
| point_f | operator+ (const size &sz) const noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::size.   | |
| point_f | operator+ (const size_f &sz) const noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::size_f.   | |
| point_f | operator+ (const point &pt) const noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::point.   | |
| point_f | operator+ (const point_f &pt) const noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::point_f.   | |
| point_f & | operator+= (const size &sz) noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::size.   | |
| point_f & | operator+= (const size_f &sz) noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::size_f.   | |
| point_f & | operator+= (const point &pt) noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::point.   | |
| point_f & | operator+= (const point_f &pt) noexcept | 
| Translates a xtd::drawing::point_f by a given xtd::drawing::point_f.   | |
| point_f | operator- (const size &sz) const noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size.   | |
| point_f | operator- (const size_f &sz) const noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size_f.   | |
| point_f | operator- (const point &pt) const noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point.   | |
| point_f | operator- (const point_f &pt) const noexcept | 
| Translates a xtd::drawing::point by the negative of a given xtd::drawing::point.   | |
| point_f & | operator-= (const size &sz) noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size.   | |
| point_f & | operator-= (const size_f &sz) noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::size_f.   | |
| point_f & | operator-= (const point &pt) noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point.   | |
| point_f & | operator-= (const point_f &pt) noexcept | 
| Translates a xtd::drawing::point_f by the negative of a given xtd::drawing::point_f.   | |
Additional Inherited Members | |
  Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object.   | |
| virtual size_t | get_hash_code () const noexcept | 
| Serves as a hash function for a particular type.   | |
| virtual type_object | get_type () const noexcept | 
| Gets the type of the current instance.   | |
| template<typename object_t > | |
| xtd::uptr< object_t > | memberwise_clone () const | 
| Creates a shallow copy of the current object.   | |
  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.   | |
  Static Public Member Functions inherited from xtd::object | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are considered equal.   | |
| template<typename object_a_t , typename object_b_t > | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
| Determines whether the specified object instances are the same instance.   | |
      
  | 
  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. | 
      
  | 
  noexcept | 
Gets a value indicating whether this xtd::drawing::point_f is empty.
      
  | 
  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. | 
      
  | 
  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. | 
      
  | 
  overridevirtualnoexcept | 
Converts this point to a human-readable string.
Reimplemented from xtd::object.
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. | 
      
  | 
  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. | 
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. | 
      
  | 
  virtualnoexcept | 
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. | 
Reimplemented from xtd::object.
      
  | 
  inlinestaticnoexcept | 
Determines whether the specified object instances are considered equal.
| object_a | The first object to compare. | 
| object_b | The second object to compare. | 
      
  | 
  static | 
Represents a xtd::drawing::point_f that has xtd::drawing::point_f::x and xtd::drawing::point_f::y values set to zero.