forked from liliskubidu/ISoundKP3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKinectStageArea.cs
43 lines (37 loc) · 1011 Bytes
/
KinectStageArea.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GesturalMusic
{
class KinectStageArea
{
// All measurements relative to facing the Kinect.
public static class FRONT_RIGHT
{
public static double X = 1.02;
public static double Z = 1.84;
}
public static class FRONT_LEFT
{
public static double X = -1.02;
public static double Z = 1.84;
}
public static class BACK_LEFT
{
public static double X = 1.76;
public static double Z = 3.77;
}
public static class BACK_RIGHT
{
public static double X = -1.76;
public static double Z = 3.77;
}
public static double PADDING = 0.14;
public static double GetCenterZ()
{
return FRONT_LEFT.Z + (BACK_LEFT.Z - FRONT_LEFT.Z) / 2;
}
}
}