Struct Point
- Namespace
- nanoFramework.UI
- Assembly
- nanoFramework.Graphics.Core.dll
A point data structure to represent a position on a plane.
[Obsolete("Switch to System.Drawing.Point", false)]
public struct Point
- Inherited Members
Constructors
Point(int, int)
Initializes a new instance of the Point struct.
public Point(int x, int y)
Parameters
Fields
Zero
The start point (X = 0, Y = 0).
public static Point Zero
Field Value
Properties
X
Gets the X position for this point.
public readonly int X { get; }
Property Value
Y
Gets the Y position for this point.
public readonly int Y { get; }
Property Value
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if obj and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator +(Point, Point)
public static Point operator +(Point point, Point other)
Parameters
Returns
operator ==(Point, Point)
public static bool operator ==(Point point, Point other)
Parameters
Returns
- bool
True if both instances are the same position.
operator !=(Point, Point)
public static bool operator !=(Point point, Point other)
Parameters
Returns
operator -(Point, Point)
public static Point operator -(Point point, Point other)