JointOrientation.cs
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using RootSystem = System;
using System.Linq;
using System.Collections.Generic;
namespace Windows.Kinect
{
//
// Windows.Kinect.JointOrientation
//
[RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
public struct JointOrientation
{
public Windows.Kinect.JointType JointType { get; set; }
public Windows.Kinect.Vector4 Orientation { get; set; }
public override int GetHashCode()
{
return JointType.GetHashCode() ^ Orientation.GetHashCode();
}
public override bool Equals(object obj)
{
if (!(obj is JointOrientation))
{
return false;
}
return this.Equals((JointOrientation)obj);
}
public bool Equals(JointOrientation obj)
{
return JointType.Equals(obj.JointType) && Orientation.Equals(obj.Orientation);
}
public static bool operator ==(JointOrientation a, JointOrientation b)
{
return a.Equals(b);
}
public static bool operator !=(JointOrientation a, JointOrientation b)
{
return !(a.Equals(b));
}
}
}