The smaller circle rolls along the line as you drag A. The curve gives the track of a point on the circumference of the larger circle.

App generated by Geometry Expressions