and

infix inline fun Path.and(p: Path): Path

Returns the intersection of two paths as a new Path. If the paths do not intersect, returns an empty path.


infix inline fun Rect.and(r: Rect): Rect
infix inline fun RectF.and(r: RectF): RectF

Returns the intersection of two rectangles as a new rectangle. If the rectangles do not intersect, returns a copy of the left hand side rectangle.


infix inline fun Region.and(r: Rect): Region

Return the intersection of this region and the specified Rect as a new region.


infix inline fun Region.and(r: Region): Region

Return the intersection of this region and the specified region as a new region.