The line has equation , with normal vector . The distance from a point to a line is the absolute value of the normal component of the displacement:
The perpendicular foot is , which lies on the line and realizes this shortest distance.
The first curve is a circle of radius centred at . A line through the origin with equation intersects it precisely when the perpendicular distance from that centre is at most the radius. The distance from a point to a line gives
Hence the full parameter range is
The two endpoint lines are tangent, at and respectively; interior values give two real intersections. Both endpoints are therefore included.