modified version of the virtual ray calculations that now appropriately
accounts for virtual rays that are moving 'towards' the target as opposed
to moving 'away' from the target