RectKt

public final class RectKt


Summary

Public methods

static final @NonNull Rect
RectKt.and(Rect receiver, Rect r)

Returns the intersection of two rectangles as a new rectangle.

static final @NonNull RectF
RectKt.and(RectF receiver, RectF r)

Returns the intersection of two rectangles as a new rectangle.

static final int

Returns "left", the first component of the rectangle.

static final float

Returns "left", the first component of the rectangle.

static final int

Returns "top", the second component of the rectangle.

static final float

Returns "top", the second component of the rectangle.

static final int

Returns "right", the third component of the rectangle.

static final float

Returns "right", the third component of the rectangle.

static final int

Returns "bottom", the fourth component of the rectangle.

static final float

Returns "bottom", the fourth component of the rectangle.

static final boolean
RectKt.contains(Rect receiver, Point p)

Returns true if the specified point is inside the rectangle.

static final boolean
RectKt.contains(RectF receiver, PointF p)

Returns true if the specified point is inside the rectangle.

static final @NonNull Region
RectKt.minus(Rect receiver, Rect r)

Returns the difference of this rectangle and the specified rectangle as a new region.

static final @NonNull Region
RectKt.minus(RectF receiver, RectF r)

Returns the difference of this rectangle and the specified rectangle as a new region.