calculate
fun calculate(areaHeight: Float, operationalAreaPadding: CameraPadding, distanceToBottom: Int): CameraOffset
Calculates the offset from the centre of the available area.
Return
the displacement of the camera relative to the centre of the available area
Parameters
area Height
area height
operational Area Padding
Paddings narrowing the available screen area. Counted FROM the edge of the screen.
distance To Bottom
distance of indicator from bottom edge