fromCenter

fun fromCenter(center: Vector2, width: Double, height: Double = width): Rectangle(source)

Creates a new Rectangle by specifying the center position with dimensions width and height.