Drag the slider to change k.
Distance to a point