Struct Point
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Point is a struct that defines the 2D point as a pair of generic type.
C#Copypublic struct Point : IEquatable<Point>
- Implements
Fields
Declaration
C#Copypublic int X
Field Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic int Y
Field Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Methods
Declaration
C#Copypublic bool Equals(Point other)
Parameters
Type | Name | Description |
---|---|---|
Point | other | The Point to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the object and this instance are the same type and represent the same value, otherwise false. |
API Level: preview
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the object and this instance are of the same type and represent the same value, otherwise false. |
Overrides
System.ValueType.Equals(System.Object)
API Level: preview
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code. |
Overrides
System.ValueType.GetHashCode()
API Level: preview
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | The string is formatted as "{{X={0} Y={1}}}". |
Overrides
System.ValueType.ToString()
API Level: preview
Operators
Declaration
C#Copypublic static bool operator ==(Point p1, Point p2)
Parameters
Type | Name | Description |
---|---|---|
Point | p1 | A Point on the left hand side. |
Point | p2 | A Point on the right hand side. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Points have equal values. |
API Level: preview
Declaration
C#Copypublic static bool operator !=(Point p1, Point p2)
Parameters
Type | Name | Description |
---|---|---|
Point | p1 | A Point on the left hand side. |
Point | p2 | A Point on the right hand side. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Points do not have equal values. |