Angular Sweep Algorithm Example Math