Class HeadPose
- Namespace
- FaceRecognitionDotNet
- Assembly
- VisioForge.Core.FaceAI.dll
Represents an head pose.
public class HeadPose : IEquatable<HeadPose>Inheritance
Implements
Inherited Members
Constructors
HeadPose(double, double, double)
Initializes a new instance of the FaceRecognitionDotNet.HeadPose class with the specified roll, pitch and yaw.
public HeadPose(double roll, double pitch, double yaw)Parameters
Properties
Pitch
Gets the pitch angle of this FaceRecognitionDotNet.HeadPose.
public double Pitch { get; }Property Value
Roll
Gets the roll angle of this FaceRecognitionDotNet.HeadPose.
public double Roll { get; }Property Value
Yaw
Gets the yaw angle of this FaceRecognitionDotNet.HeadPose.
public double Yaw { get; }Property Value
Methods
Equals(HeadPose)
Compares two FaceRecognitionDotNet.HeadPose class for equality.
public bool Equals(HeadPose other)Parameters
otherHeadPose-
The pose to compare to this instance.
Returns
- bool
-
if both FaceRecognitionDotNet.HeadPose class contain the same FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw values; otherwise,true
.false
Equals(object)
Determines whether the specified Object is a FaceRecognitionDotNet.HeadPose and whether it contains the same data as this FaceRecognitionDotNet.HeadPose.
public override bool Equals(object obj)Parameters
Returns
- bool
-
iftrueobjis a FaceRecognitionDotNet.HeadPose and contains the same FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw values as this FaceRecognitionDotNet.HeadPose; otherwise,
.false
GetHashCode()
Returns the hash code for this FaceRecognitionDotNet.HeadPose.
public override int GetHashCode()Returns
- int
-
The hash code for this FaceRecognitionDotNet.HeadPose structure.
Operators
operator ==(HeadPose, HeadPose)
Compares two FaceRecognitionDotNet.HeadPose class for equality.
public static bool operator ==(HeadPose pose1, HeadPose pose2)Parameters
pose1HeadPose-
The first FaceRecognitionDotNet.HeadPose structure to compare.
pose2HeadPose-
The second FaceRecognitionDotNet.HeadPose structure to compare.
Returns
- bool
-
if the FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw oftruepose1andpose2are equal; otherwise,
.false
operator !=(HeadPose, HeadPose)
Compares two FaceRecognitionDotNet.HeadPose class for inequality.
public static bool operator !=(HeadPose pose1, HeadPose pose2)Parameters
pose1HeadPose-
The first FaceRecognitionDotNet.HeadPose structure to compare.
pose2HeadPose-
The second FaceRecognitionDotNet.HeadPose structure to compare.
Returns
- bool
-
iftruepose1andpose2have different FaceRecognitionDotNet.HeadPose.Roll or FaceRecognitionDotNet.HeadPose.Yaw;
iffalsepose1andpose2have the same FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw.