contains

open fun contains(@NonNull point: Vector2d, @NonNull unit: Distance): Boolean

Check whether this Rect contains this Vector2d.

Return

whether the point is contained in the Rect

Parameters

point

the point to check

unit

the distance unit of this point to convert to the unit


open fun contains(@NonNull other: Rect): Boolean

Check whether this Rect fully contains another Rect.

Return

whether this Rect fully contains the other Rect

Parameters

other

the other Rect to check