Struct Point
- Namespace
- FaceRecognitionDotNet
- Assembly
- VisioForge.Core.FaceAI.dll
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
public struct Point : IEquatable<Point>Implements
Inherited Members
Constructors
Point(int, int)
Initializes a new instance of the FaceRecognitionDotNet.Point structure with the specified coordinates.
public Point(int x, int y)Parameters
Properties
X
Gets the x-coordinate of this FaceRecognitionDotNet.Point.
public readonly int X { get; }Property Value
Y
Gets the y-coordinate of this FaceRecognitionDotNet.Point.
public readonly int Y { get; }Property Value
Methods
Equals(Point)
Compares two FaceRecognitionDotNet.Point structures for equality.
public bool Equals(Point other)Parameters
otherPoint-
The point to compare to this instance.
Returns
- bool
-
if both FaceRecognitionDotNet.Point structures contain the same FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y values; otherwise,true
.false
Equals(object)
Determines whether the specified Object is a FaceRecognitionDotNet.Point and whether it contains the same coordinates as this FaceRecognitionDotNet.Point.
public override bool Equals(object obj)Parameters
Returns
- bool
-
iftrueobjis a FaceRecognitionDotNet.Point and contains the same FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y values as this FaceRecognitionDotNet.Point; otherwise,
.false
GetHashCode()
Returns the hash code for this FaceRecognitionDotNet.Point.
public override int GetHashCode()Returns
- int
-
The hash code for this FaceRecognitionDotNet.Point structure.
Operators
operator ==(Point, Point)
Compares two FaceRecognitionDotNet.Point structures for equality.
public static bool operator ==(Point point1, Point point2)Parameters
point1Point-
The first FaceRecognitionDotNet.Point structure to compare.
point2Point-
The second FaceRecognitionDotNet.Point structure to compare.
Returns
- bool
-
if both the FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y coordinates oftruepoint1andpoint2are equal; otherwise,
.false
operator !=(Point, Point)
Compares two FaceRecognitionDotNet.Point structures for inequality.
public static bool operator !=(Point point1, Point point2)Parameters
point1Point-
The first FaceRecognitionDotNet.Point structure to compare.
point2Point-
The second FaceRecognitionDotNet.Point structure to compare.
Returns
- bool
-
iftruepoint1andpoint2have different FaceRecognitionDotNet.Point.X or FaceRecognitionDotNet.Point.Y coordinates;
iffalsepoint1andpoint2have the same FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y coordinates.