public void CalibrationPointUpdated(LeapMotionCalibrationStep leapMotionCalibrationStep, Point position, DndCore.Vector point3D, double scale) { switch (leapMotionCalibrationStep) { case LeapMotionCalibrationStep.BackUpperLeft: skeletalData2d.BackPlane.UpperLeft2D = Point2D.From(position); skeletalData2d.BackPlane.UpperLeft = ScaledPoint.From(point3D, scale); break; case LeapMotionCalibrationStep.BackLowerRight: skeletalData2d.BackPlane.LowerRight2D = Point2D.From(position); skeletalData2d.BackPlane.LowerRight = ScaledPoint.From(point3D, scale); break; case LeapMotionCalibrationStep.FrontUpperLeft: skeletalData2d.FrontPlane.UpperLeft2D = Point2D.From(position); skeletalData2d.FrontPlane.UpperLeft = ScaledPoint.From(point3D, scale); break; case LeapMotionCalibrationStep.FrontLowerRight: skeletalData2d.FrontPlane.LowerRight2D = Point2D.From(position); skeletalData2d.FrontPlane.LowerRight = ScaledPoint.From(point3D, scale); break; } }
public void SetDiscoverabilityIndex(LeapMotionCalibrationStep leapMotionCalibrationStep) { DiscoverabilityIndex = (int)leapMotionCalibrationStep - 1; }