viewpoint: add reverse viewpoint function