No need to calculate `distance` and `intersectionPoint` unless they are used.