contains

fun contains(child: Frame, container: Frame, tolerance: Float = 0.0f): Boolean(source)

Returns whether child lies within container, grown by tolerance on every side.

Return

true when both frames are usable and the child fits.

Parameters

child

The inner frame.

container

The outer frame.

tolerance

A finite, nonnegative allowance for rounding.