contains

inline operator fun Bitmap.contains(p: Point): Boolean
inline operator fun Bitmap.contains(p: PointF): Boolean

Returns true if the specified point is inside the bitmap. A point is contained if: 0 <= x < width and 0 <= y < height. An empty bitmap never contains any point.


inline operator fun Rect.contains(p: Point): Boolean
inline operator fun RectF.contains(p: PointF): Boolean

Returns true if the specified point is inside the rectangle. The left and top are considered to be inside, while the right and bottom are not. This means that for a point to be contained: left <= x < right and top <= y < bottom. An empty rectangle never contains any point.


inline operator fun Region.contains(p: Point): Boolean

Return true if the region contains the specified Point.