calculate field of view