Another option for calculating the exit position

use the law of sines to calculate the exit position instead of an iterative approach.