centerX

fun centerX(): Int

Return

the horizontal center of the rectangle. If the computed value is fractional, this method returns the largest integer that is less than the computed value.