Conveyor Belt

The grey function is y=-tan(x-h)+k
When h=0 and k=0, the function matches the central part of the graph of the point on the conveyor belt.
Can you change h and k to make it match the paths of the upper and lower points?

This document requires an HTML5-compliant browser.
h
k

App generated by Geometry Expressions