CCT.NUI.WPFSamples.KinectTouchWindow.MapToScreen C# (CSharp) Метод

MapToScreen() приватный Метод

private MapToScreen ( Point point ) : Point
point CCT.NUI.Core.Point
Результат CCT.NUI.Core.Point
        private Point MapToScreen(Point point)
        {
            var originalSize = new Size(this.handDataSource.Width, this.handDataSource.Height);
            return new Point(
                -50 + (float)(point.X / originalSize.Width * (SystemParameters.PrimaryScreenWidth + 100)), 
                -50 + (float)(point.Y / originalSize.Height * (SystemParameters.PrimaryScreenHeight + 100)), 
                point.Z);
        }