Lines Matching refs:rect
259 const SkRect& rect,
271 // check the cross product of v with the vec from edgeBegin to each rect corner
272 SkScalar yL = v.fY * (rect.fLeft - edgeBegin->fX);
273 SkScalar xT = v.fX * (rect.fTop - edgeBegin->fY);
274 SkScalar yR = v.fY * (rect.fRight - edgeBegin->fX);
275 SkScalar xB = v.fX * (rect.fBottom - edgeBegin->fY);
283 bool SkPath::conservativelyContainsRect(const SkRect& rect) const {
328 if (!check_edge_against_rect(quadPts[0], quadPts[2], rect, direction)) {
331 if (!check_edge_against_rect(quadPts[2], quadPts[4], rect, direction)) {
335 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, direction)) {
345 return check_edge_against_rect(prevPt, firstPt, rect, direction);
402 Determines if path is a rect by keeping track of changes in direction
451 bool SkPath::isRect(SkRect* rect, bool* isClosed, SkPathDirection* direction) const {
455 return SkPathPriv::IsRectContour(*this, false, &currVerb, &pts, isClosed, direction, rect);
793 SkPath& SkPath::addRect(const SkRect &rect, SkPathDirection dir, unsigned startIndex) {
798 SkAutoPathBoundsUpdate apbu(this, rect);
805 SkPath_RectPointIterator iter(rect, dir, startIndex);
857 // a rect.
922 SkPath& SkPath::addRoundRect(const SkRect& rect, const SkScalar radii[],
925 rrect.setRectRadii(rect, (const SkVector*) radii);
941 // degenerate(rect) => radii points are collapsing
1025 SkPath& SkPath::addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry,
1034 rrect.setRectXY(rect, rx, ry);
1274 outside their marks. A round rect may lose convexity as a result. If the input
3129 bool SkPathPriv::IsSimpleRect(const SkPath& path, bool isSimpleFill, SkRect* rect,
3202 rect->setLTRB(rectPts[0].fX, rectPts[0].fY, rectPts[2].fX, rectPts[2].fY);
3207 rect->setLTRB(rectPts[2].fX, rectPts[0].fY, rectPts[0].fX, rectPts[2].fY);
3212 rect->setLTRB(rectPts[0].fX, rectPts[2].fY, rectPts[2].fX, rectPts[0].fY);
3217 rect->setLTRB(rectPts[2].fX, rectPts[2].fY, rectPts[0].fX, rectPts[0].fY);
3503 SkRect* rect) {
3507 const SkPoint* firstPt = nullptr; // first point in the rect (last of first moves)
3508 const SkPoint* lastPt = nullptr; // last point in the rect (last of lines or first if closed)
3628 if (rect) {
3629 rect->set(firstCorner, thirdCorner);