getViewPort added

I've added the getViewPort fuction