zoomCenteredTo

fun zoomCenteredTo(zoom: Float, pivot: PointF)

Change the zoom level, relatively to a pivot point. It will call moveTo() to make sure the given point stays in the middle of the screen.

Parameters

zoom

The zoom level.

pivot

The point on the screen that should stays.