Struct Point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Implements
Inherited Members
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public struct Point : IEquatable<Point>
Constructors
| Improve this Doc View SourcePoint(Int32, Int32)
Initializes a new instance of the Point structure with the specified coordinates.
Declaration
public Point(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The horizontal position of the point. |
System.Int32 | y | The vertical position of the point. |
Properties
| Improve this Doc View SourceX
Gets the x-coordinate of this Point.
Declaration
public readonly int X { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Y
Gets the y-coordinate of this Point.
Declaration
public readonly int Y { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(Point)
Compares two Point structures for equality.
Declaration
public bool Equals(Point other)
Parameters
Type | Name | Description |
---|---|---|
Point | other | The point to compare to this instance. |
Returns
Type | Description |
---|---|
System.Boolean | if both Point structures contain the same X and Y values; otherwise, .
|
Equals(Object)
Determines whether the specified System.Object is a Point and whether it contains the same coordinates as this Point.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if obj is a Point and contains the same X and Y values as this Point; otherwise, .
|
Overrides
GetHashCode()
Returns the hash code for this Point.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this Point structure. |
Overrides
Operators
| Improve this Doc View SourceEquality(Point, Point)
Compares two Point structures for equality.
Declaration
public static bool operator ==(Point point1, Point point2)
Parameters
Type | Name | Description |
---|---|---|
Point | point1 | The first Point structure to compare. |
Point | point2 | The second Point structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if both the X and Y coordinates of point1 and point2 are equal; otherwise, .
|
Inequality(Point, Point)
Compares two Point structures for inequality.
Declaration
public static bool operator !=(Point point1, Point point2)
Parameters
Type | Name | Description |
---|---|---|
Point | point1 | The first Point structure to compare. |
Point | point2 | The second Point structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if point1 and point2 have different X or Y coordinates; if point1 and point2 have the same X and Y coordinates.
|