TechfairKinect.Gestures.Kinect.KinectSensorWrapper.ScaleSkeletonPoint C# (CSharp) Method

ScaleSkeletonPoint() private method

private ScaleSkeletonPoint ( Microsoft.Kinect.SkeletonPoint point ) : Vector3D
point Microsoft.Kinect.SkeletonPoint
return Vector3D
        private Vector3D ScaleSkeletonPoint(SkeletonPoint point)
        {
            var depth = _sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(point, DepthImageFormat.Resolution640x480Fps30);
            return Constrain(new Vector3D(
                depth.X / 640.0,
                1 - depth.Y / 480.0,
                depth.Depth
            ));
        }