centerPosition
fun Actor.centerPosition(width: Float = this.stage.width, height: Float = this.stage.height, normalize: Boolean = true)
Modifies this actor position to be centered within the passed bounds. Uses actor's size to calculate the offsets.
Parameters
width
total available width in stage units. Defaults to stage width.
height
total available height in stage units. Defaults to stage height.
normalize
if true, position will be converted to ints. Defaults to true