Class HeadPose
Represents an head pose.
Inheritance
Implements
Inherited Members
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public class HeadPose : IEquatable<HeadPose>
Constructors
| Improve this Doc View SourceHeadPose(Double, Double, Double)
Initializes a new instance of the HeadPose class with the specified roll, pitch and yaw.
Declaration
public HeadPose(double roll, double pitch, double yaw)
Parameters
Type | Name | Description |
---|---|---|
System.Double | roll | The roll angle. |
System.Double | pitch | The pitch angle. |
System.Double | yaw | The yaw angle. |
Properties
| Improve this Doc View SourcePitch
Gets the pitch angle of this HeadPose.
Declaration
public double Pitch { get; }
Property Value
Type | Description |
---|---|
System.Double |
Roll
Gets the roll angle of this HeadPose.
Declaration
public double Roll { get; }
Property Value
Type | Description |
---|---|
System.Double |
Yaw
Gets the yaw angle of this HeadPose.
Declaration
public double Yaw { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceEquals(HeadPose)
Compares two HeadPose class for equality.
Declaration
public bool Equals(HeadPose other)
Parameters
Type | Name | Description |
---|---|---|
HeadPose | other | The pose to compare to this instance. |
Returns
Type | Description |
---|---|
System.Boolean | if both HeadPose class contain the same Roll, Pitch and Yaw values; otherwise, .
|
Equals(Object)
Determines whether the specified System.Object is a HeadPose and whether it contains the same data as this HeadPose.
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 HeadPose and contains the same Roll, Pitch and Yaw values as this HeadPose; otherwise, .
|
Overrides
GetHashCode()
Returns the hash code for this HeadPose.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this HeadPose structure. |
Overrides
Operators
| Improve this Doc View SourceEquality(HeadPose, HeadPose)
Compares two HeadPose class for equality.
Declaration
public static bool operator ==(HeadPose pose1, HeadPose pose2)
Parameters
Type | Name | Description |
---|---|---|
HeadPose | pose1 | The first HeadPose structure to compare. |
HeadPose | pose2 | The second HeadPose structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if the Roll, Pitch and Yaw of pose1 and pose2 are equal; otherwise, .
|
Inequality(HeadPose, HeadPose)
Compares two HeadPose class for inequality.
Declaration
public static bool operator !=(HeadPose pose1, HeadPose pose2)
Parameters
Type | Name | Description |
---|---|---|
HeadPose | pose1 | The first HeadPose structure to compare. |
HeadPose | pose2 | The second HeadPose structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | if pose1 and pose2 have different Roll or Yaw; if pose1 and pose2 have the same Roll, Pitch and Yaw.
|