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

areaHeight

area height

operationalAreaPadding

Paddings narrowing the available screen area. Counted FROM the edge of the screen.

distanceToBottom

distance of indicator from bottom edge