Input: one of two yellow bars that turns on stationary bearings.
Violet bar draws two perpendicular straight lines (in blue and green).
The green intersects axes of three stationary bearings.
The blue is perpendicular to the green at its intersection with the axis of the middle bearing.
Length of yellow bars: a.sqrt(2)
Length of blue bars: a
Length of pink bar: 2a
Length of violet bar: a.sqrt(2) + a.sqrt(2)
Horizontal distances between three stationary bearings: a