Ejemplo n.º 1
0
        /// <summary>
        /// Determines whether the user is performing the exercise correctly. Returns -1 if the user has failed to maintain proper form, else returns the approximate percentage
        /// of the exercise step that the user has completed
        /// </summary>
        /// <param name="userData"></param>
        /// <returns></returns>
        public UserPerformanceAnalysisInfo IsUserPerformingStepCorrectly(SkeletonData userData)
        {
            Pose currentPose = new Pose(userData, initialPose.bodyPartsOfInterest);

            return currentPose.IsInBetweenPoses(initialPose, finalPose);
        }