Class FacePoint
Represents an coordinate and index of face parts.
Inheritance
Implements
Inherited Members
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public class FacePoint : IEquatable<FacePoint>
Constructors
| Improve this Doc View SourceFacePoint(Point, Int32)
Initializes a new instance of the FacePoint class with the specified coordinates and index.
Declaration
public FacePoint(Point point, int index)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The coordinate of face parts. |
System.Int32 | index | The index of face parts. |
Properties
| Improve this Doc View SourceIndex
Gets the index of this FacePoint.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Point
Gets the coordinate of this FacePoint.
Declaration
public Point Point { get; }
Property Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourceEquals(FacePoint)
Compares two FacePoint class for equality.
Declaration
public bool Equals(FacePoint other)
Parameters
Type | Name | Description |
---|---|---|
FacePoint | other | The point to compare to this instance. |
Returns
Type | Description |
---|---|
System.Boolean | if both FacePoint class contain the same Point and Index values; otherwise, .
|
Equals(Object)
Determines whether the specified System.Object is a FacePoint and whether it contains the same data as this FacePoint.
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 FacePoint and contains the same Point and Index values as this FacePoint; otherwise, .
|
Overrides
GetHashCode()
Returns the hash code for this FacePoint.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this FacePoint class. |
Overrides
Operators
| Improve this Doc View SourceEquality(FacePoint, FacePoint)
Compares two FacePoint class for equality.
Declaration
public static bool operator ==(FacePoint point1, FacePoint point2)
Parameters
Type | Name | Description |
---|---|---|
FacePoint | point1 | The first FacePoint class to compare. |
FacePoint | point2 | The second FacePoint class to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if both the Point and Index of point1 and point2 are equal; otherwise, .
|
Inequality(FacePoint, FacePoint)
Compares two FacePoint class for inequality.
Declaration
public static bool operator !=(FacePoint point1, FacePoint point2)
Parameters
Type | Name | Description |
---|---|---|
FacePoint | point1 | The first FacePoint class to compare. |
FacePoint | point2 | The second FacePoint class to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if point1 and point2 have different Point or Index; if point1 and point2 have the same Point and Index.
|