Point Struct
Definition
Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.
Implements
Syntax
[Serializable]
public struct Point : IEquatable<Point>
Constructors
Point(Double, Double) | Initializes a new instance of the Point class with the specified coordinates. |
Point(Vector2) | Initializes a new instance of the Point struct from the specified System.Numerics.Vector2. |
Fields
Empty | Creates a new instance of the Point class with member data left uninitialized. |
Properties
IsEmpty | Gets a value indicating whether this Point is empty. |
X | Gets the x-coordinate of this Point. |
Y | Gets the y-coordinate of this Point. |
Methods
Add(Point, Int32Size) | |
Add(Point, Size) | |
Equals(Point) | Indicates whether the current object is equal to another object of the same type. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
Parse(String) | Parse - returns an instance converted from the provided string using the culture "en-US" string with Point data |
Subtract(Point, Int32Size) | |
Subtract(Point, Size) | |
ToString() | Returns a string that represents the current object. |
Operators
Addition(Point, Int32Size) | |
Addition(Point, Size) | |
Addition(Point, Double) | Moves a Point by a given value. |
Equality(Point, Point) | Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal. |
Explicit(Vector2 to Point) | Converts the specified System.Numerics.Vector2 to a Point. |
Inequality(Point, Point) | Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal. |
Subtraction(Point, Int32Size) | |
Subtraction(Point, Size) |