[]
Structure specifing a point with double X and Y coordinates.
public struct Point2D : IEquatable<Point2D>
| Name | Description |
|---|---|
| Point2D(Point2F) | Initializes a new instance of the Point2D struct. |
| Point2D(double, double) | Initializes a new instance of the Point2D struct. |
| Point2D(Point) | Initializes a new instance of the Point2D struct. |
| Name | Description |
|---|---|
| Empty | An empty point. |
| SizeInBytes | The size of the Point2D type, in bytes. |
| X | The X coordinate of the point. |
| Y | The Y coordinate of the point. |
| Name | Description |
|---|---|
| IsEmpty | Determines if all components of Point2D are equal to zero. |
| Name | Description |
|---|---|
| Distance(Point2D) | Gets the distance to the given point. |
| DistanceSquared(Point2D) | Gets the square of the distance to the given point. |
| Equals(Point2D) | Indicates whether this instance and a specified object are equal. |
| Equals(object) | Indicates whether this instance and a specified object are equal. |
| FromDips(Point2D, float, float) | Converts a point from DIPs to pixels. |
| FromDips(float, float) | Converts a point from DIPs to pixels. |
| GetHashCode() | Returns a hash code for this instance. |
| Offset(Point2D) | Offsets the point by the specified amount. |
| Offset(Point2D, Point2D) | Offsets the point by the specified amount. |
| Offset(Point2D, Size2D) | Offsets the point by the specified amount. |
| Offset(Point2D, double, double) | Offsets the point by the specified amount. |
| Offset(Size2D) | Offsets the point by the specified amount. |
| Offset(double, double) | Offsets the point by the specified amount. |
| Round() | Returns a Point2L with rounded X and Y coordinates. |
| Scale(Point2D, double) | Scales X and Y coordinates of a point by the specified scaleFactor. |
| Scale(Point2D, double, double) | Scales X and Y coordinates of a point by the specified scaleX and scaleY. |
| Scale(double) | Scales X and Y coordinates of a point by the specified scaleFactor. |
| Scale(double, double) | Scales X and Y coordinates of a point by the specified scaleX and scaleY. |
| ToDips(Point2D, float, float) | Converts a point from pixels to DIPs. |
| ToDips(float, float) | Converts a point from pixels to DIPs. |
| ToPoint() | Converts Point2D to System.Windows.Point. |
| ToPoint2F() | |
| ToString() | Returns a string that represents the current object. |
| Truncate() | Returns a Point2L with truncated X and Y coordinates. |
| Name | Description |
|---|---|
| operator +(Point2D, Point2D) | Returns the result of addition of point2 to point1. |
| operator +(Point2D, Size2D) | Returns the result of addition of size to point. |
| operator ==(Point2D, Point2D) | Determines if the specified values are equal. |
| explicit operator Point(Point2D) | Performs an explicit conversion from Point2D to System.Windows.Point. |
| explicit operator Point2D(Point) | Performs an explicit conversion from System.Windows.Point to Point2D. |
| operator !=(Point2D, Point2D) | Determines if the specified values are not equal. |
| operator -(Point2D, Point2D) | Returns the result of substruction of point2 from point1. |
| operator -(Point2D, Size2D) | Returns the result of substruction of size from point. |