Show / Hide Table of Contents

Struct Point

Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.

Implements
System.IEquatable<Point>
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public struct Point : IEquatable<Point>

Constructors

| Improve this Doc View Source

Point(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 Source

X

Gets the x-coordinate of this Point.

Declaration
public readonly int X { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

Equals(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
true
if both Point structures contain the same X and Y values; otherwise,
false
.
| Improve this Doc View Source

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
true
if obj is a Point and contains the same X and Y values as this Point; otherwise,
false
.
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

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
System.ValueType.GetHashCode()

Operators

| Improve this Doc View Source

Equality(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
true
if both the X and Y coordinates of point1 and point2 are equal; otherwise,
false
.
| Improve this Doc View Source

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
true
if point1 and point2 have different X or Y coordinates;
false
if point1 and point2 have the same X and Y coordinates.

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX