constrain

open fun constrain(@NonNull point: Point): Point

Constrains `point` against the bounds.

Parameters

point

The coordinate to be constrained.