Add inViewport method