25 - refactoring calculateIntersectionPoint to have fewer variables