Home | History | Annotate | Download | only in core

Lines Matching refs:ry

592 void SkPath::addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry,
604 bool skip_vert = ry >= halfH;
616 ry = halfH;
620 SkScalar sy = SkScalarMul(ry, CUBIC_ARC_FACTOR);
629 rect.fLeft, rect.fTop + ry - sy,
630 rect.fLeft, rect.fTop + ry); // top-left
632 this->lineTo(rect.fLeft, rect.fBottom - ry); // left
634 this->cubicTo(rect.fLeft, rect.fBottom - ry + sy,
641 rect.fRight, rect.fBottom - ry + sy,
642 rect.fRight, rect.fBottom - ry); // bot-right
644 this->lineTo(rect.fRight, rect.fTop + ry);
646 this->cubicTo(rect.fRight, rect.fTop + ry - sy,
651 rect.fRight, rect.fTop + ry - sy,
652 rect.fRight, rect.fTop + ry); // top-right
654 this->lineTo(rect.fRight, rect.fBottom - ry);
656 this->cubicTo(rect.fRight, rect.fBottom - ry + sy,
663 rect.fLeft, rect.fBottom - ry + sy,
664 rect.fLeft, rect.fBottom - ry); // bot-left
666 this->lineTo(rect.fLeft, rect.fTop + ry); // left
668 this->cubicTo(rect.fLeft, rect.fTop + ry - sy,
679 SkScalar rx, SkScalar ry, int startAngle,
682 ry = SkMinScalar(SkScalarHalf(rect.height()), ry);
685 r.set(-rx, -ry, rx, ry);
738 SkScalar ry = SkScalarHalf(oval.height());
741 SkScalar sy = SkScalarMul(ry, CUBIC_ARC_FACTOR);
746 this->cubicTo(cx + rx, cy - sy, cx + sx, cy - ry, cx, cy - ry);
747 this->cubicTo(cx - sx, cy - ry, cx - rx, cy - sy, cx - rx, cy);
748 this->cubicTo(cx - rx, cy + sy, cx - sx, cy + ry, cx, cy + ry);
749 this->cubicTo(cx + sx, cy + ry, cx + rx, cy + sy, cx + rx, cy);
751 this->cubicTo(cx + rx, cy + sy, cx + sx, cy + ry, cx, cy + ry);
752 this->cubicTo(cx - sx, cy + ry, cx - rx, cy + sy, cx - rx, cy);
753 this->cubicTo(cx - rx, cy - sy, cx - sx, cy - ry, cx, cy - ry);
754 this->cubicTo(cx + sx, cy - ry, cx + rx, cy - sy, cx + rx, cy);
758 SkScalar sy = SkScalarMul(ry, SK_ScalarTanPIOver8);
760 SkScalar my = SkScalarMul(ry, SK_ScalarRoot2Over2);
769 const SkScalar T = oval.fTop; // cy - ry
771 const SkScalar B = oval.fBottom; // cy + ry