Table of Contents

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

x int

The horizontal position of the point.

y int

The vertical position of the point.

Properties

X

Gets the x-coordinate of this FaceRecognitionDotNet.Point.

public readonly int X { get; }

Property Value

int

Y

Gets the y-coordinate of this FaceRecognitionDotNet.Point.

public readonly int Y { get; }

Property Value

int

Methods

Equals(Point)

Compares two FaceRecognitionDotNet.Point structures for equality.

public bool Equals(Point other)

Parameters

other Point

The point to compare to this instance.

Returns

bool
true
if both FaceRecognitionDotNet.Point structures contain the same FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y values; otherwise,
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

obj object

The Object to compare.

Returns

bool
true
if obj is 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

point1 Point

The first FaceRecognitionDotNet.Point structure to compare.

point2 Point

The second FaceRecognitionDotNet.Point structure to compare.

Returns

bool
true
if both the FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y coordinates of point1 and point2 are equal; otherwise,
false
.

operator !=(Point, Point)

Compares two FaceRecognitionDotNet.Point structures for inequality.

public static bool operator !=(Point point1, Point point2)

Parameters

point1 Point

The first FaceRecognitionDotNet.Point structure to compare.

point2 Point

The second FaceRecognitionDotNet.Point structure to compare.

Returns

bool
true
if point1 and point2 have different FaceRecognitionDotNet.Point.X or FaceRecognitionDotNet.Point.Y coordinates;
false
if point1 and point2 have the same FaceRecognitionDotNet.Point.X and FaceRecognitionDotNet.Point.Y coordinates.