Point Struct
Represents a pixel coordinate. The origin is the top-left corner of the stored pixels; Y grows downward.
public readonly struct Point : IEquatable<Point>- Implements
Constructors
| Name | Description |
|---|---|
| Point(int, int) | Initializes a new instance of the Point struct. |
Point(int, int)
Point.csProperties
| Name | Description |
|---|---|
| Empty | Gets the point whose coordinates are zero. |
| X | Gets the horizontal coordinate. |
| Y | Gets the vertical coordinate. |
Empty
Point.csMethods
| Name | Description |
|---|---|
| Deconstruct(int, int) | Deconstructs the point into its coordinates. |
| Equals(Point) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the point formatted as ({X}, {Y}). |
Deconstruct(int, int)
Point.csGetHashCode()
Point.csToString()
Point.csOperators
| Name | Description |
|---|---|
| operator ==(Point, Point) | Compares two points for equality. |
| operator !=(Point, Point) | Compares two points for inequality. |