Table of Contents

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

roll double

The roll angle.

pitch double

The pitch angle.

yaw double

The yaw angle.

Properties

Pitch

Gets the pitch angle of this FaceRecognitionDotNet.HeadPose.

public double Pitch { get; }

Property Value

double

Roll

Gets the roll angle of this FaceRecognitionDotNet.HeadPose.

public double Roll { get; }

Property Value

double

Yaw

Gets the yaw angle of this FaceRecognitionDotNet.HeadPose.

public double Yaw { get; }

Property Value

double

Methods

Equals(HeadPose)

Compares two FaceRecognitionDotNet.HeadPose class for equality.

public bool Equals(HeadPose other)

Parameters

other HeadPose

The pose to compare to this instance.

Returns

bool
true
if both FaceRecognitionDotNet.HeadPose class contain the same FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw values; otherwise,
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

obj object

The Object to compare.

Returns

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

pose1 HeadPose

The first FaceRecognitionDotNet.HeadPose structure to compare.

pose2 HeadPose

The second FaceRecognitionDotNet.HeadPose structure to compare.

Returns

bool
true
if the FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw of pose1 and pose2 are equal; otherwise,
false
.

operator !=(HeadPose, HeadPose)

Compares two FaceRecognitionDotNet.HeadPose class for inequality.

public static bool operator !=(HeadPose pose1, HeadPose pose2)

Parameters

pose1 HeadPose

The first FaceRecognitionDotNet.HeadPose structure to compare.

pose2 HeadPose

The second FaceRecognitionDotNet.HeadPose structure to compare.

Returns

bool
true
if pose1 and pose2 have different FaceRecognitionDotNet.HeadPose.Roll or FaceRecognitionDotNet.HeadPose.Yaw;
false
if pose1 and pose2 have the same FaceRecognitionDotNet.HeadPose.Roll, FaceRecognitionDotNet.HeadPose.Pitch and FaceRecognitionDotNet.HeadPose.Yaw.