Skip to content

Instantly share code, notes, and snippets.

View andiCR's full-sized avatar

Andrés Cartín andiCR

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andicr on github.
  • I am andrescartin (https://keybase.io/andrescartin) on keybase.
  • I have a public key ASC1yJ3IjLuRoS2vwuxUSae2b-zCHnajXX7WbBZZsSnG8wo

To claim this, I am signing this object:

@andiCR
andiCR / gist:6d21074f1a0883e4f88b
Last active August 29, 2015 14:05
Kinect function to compare two bodies (recordedjoints is a variable, joints is a function parameter)
double CompareCurrentBody(IReadOnlyDictionary<JointType, Joint> joints)
{
if (recordedJointPoints == null)
throw new Exception("No recorded points");
var jointConnections = new List<Tuple<JointType, JointType>>()
{
// Torso
new Tuple<JointType, JointType> (JointType.Head, JointType.Neck),
new Tuple<JointType, JointType> (JointType.Neck, JointType.SpineShoulder),