contains

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

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(source)
inline operator fun RectF.contains(p: PointF): Boolean(source)

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(source)

Return true if the region contains the specified Point.