Lines Matching defs:rect
1559 /** Sets rect to bounds of rect corners mapped by SkMatrix.
1560 Returns true if mapped corners are computed rect corners.
1564 @param rect rectangle to map, and storage for bounds of mapped corners
1566 @return true if result is equivalent to mapped rect
1568 bool mapRect(SkRect* rect, SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const {
1569 return this->mapRect(rect, *rect, pc);
1584 /** Maps four corners of rect to dst. SkPoint are mapped by multiplying each
1585 rect corner by SkMatrix. rect corner is processed in this order:
1586 (rect.fLeft, rect.fTop), (rect.fRight, rect.fTop), (rect.fRight, rect.fBottom),
1587 (rect.fLeft, rect.fBottom).
1589 rect may be empty: rect.fLeft may be greater than or equal to rect.fRight;
1590 rect.fTop may be greater than or equal to rect.fBottom.
1598 where pt is initialized from each of (rect.fLeft, rect.fTop),
1599 (rect.fRight, rect.fTop), (rect.fRight, rect.fBottom), (rect.fLeft, rect.fBottom),
1607 @param rect SkRect to map
1612 void mapRectToQuad(SkPoint dst[4], const SkRect& rect) const {
1613 // This could potentially be faster if we only transformed each x and y of the rect once.
1614 rect.toQuad(dst);