centeredAt

open fun centeredAt(@NonNull center: Vector2d): Rect

Return a new Rect such that the center of the new Rect is at the supplied point.

Return

a new Rect with the same dimensions as this Rect and the center at the supplied point

Parameters

center

the center point of the new Rect