ICamera Zoom

The following code under ICamera doesn’t seem to work. Is there any issue with how it’s being used?

            ICamera cam = IoC.Get<IApplication>().ActiveWindow.Camera;
            Point startPoint = new Point(0, 0); 
            Point endPoint = new Point(3.456, 7.888); 
            cam.Zoom(startPoint, endPoint);
            IRenderService rs = IoC.Get<IRenderService>();
            rs.RequestRender();