예제 #1
0
        /// <summary>
        /// Determines whether two TransformSmoothParameters instances are equal.
        /// </summary>
        /// <param name="smoothParameters1">A TransformSmoothParameters to compare for equality.</param>
        /// <param name="smoothParameters2">A TransformSmoothParameters to compare for equality.</param>
        /// <returns>true if the two TransformSmoothParameters instances are equal; otherwise, false.</returns>
        public static bool op_Equality(TransformSmoothParameters smoothParameters1, TransformSmoothParameters smoothParameters2)
        {
            if (smoothParameters1.Correction == smoothParameters2.Correction && smoothParameters1.JitterRadius == smoothParameters2.JitterRadius &&
                smoothParameters1.MaxDeviationRadius == smoothParameters2.MaxDeviationRadius && smoothParameters1.Prediction == smoothParameters2.Prediction &&
                smoothParameters1.Smoothing == smoothParameters2.Smoothing)
                return true;

            return false;
        }
예제 #2
0
 private static extern HRESULT NuiTransformSmooth(ref NuiSkeletonFrame pSkeletonFrame, ref TransformSmoothParameters pSmoothingParams);
예제 #3
0
        /// <summary>
        /// Enables skeleton tracking.
        /// </summary>
        /// <param name="smoothParameters">Smoothing parameters.</param>
        public void Enable(TransformSmoothParameters smoothParameters)
        {
            Enable();

            SmoothParameters = smoothParameters;
            TransformSmooth = true;
        }