horizontallyAligned

fun horizontallyAligned(first: Frame, second: Frame, tolerance: Float = 1.0f): Boolean(source)

Returns whether two frames' horizontal centers differ by less than tolerance.

Return

true when both frames are usable and centered on the same vertical line.

Parameters

first

One frame.

second

The other frame.

tolerance

A finite, positive, exclusive tolerance.