pan

fun pan(    x: Number,     y: Number,     smooth: Boolean = false)

pans the view of the camera to the specified coordinates. The coordinates specified represent the upper-left corner of the view.

Parameters

x

The x-coordinate to scroll to.

y

The y-coordinate to scroll to.

smooth

if the transition should be interpolated