• Home
  • Raw
  • Download

Lines Matching refs:dxy

237     void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const;
501 SkVector dxy = lineEnd - lineStart; in pt_to_line() local
502 if (degenerate_vector(dxy)) { in pt_to_line()
506 SkScalar numer = dxy.dot(ab0); in pt_to_line()
507 SkScalar denom = dxy.dot(dxy); in pt_to_line()
765 void SkPathStroker::setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, in setRayPts() argument
767 SkPoint oldDxy = *dxy; in setRayPts()
768 if (!dxy->setLength(fRadius)) { // consider moving double logic into SkPoint::setLength in setRayPts()
772 dxy->fX = SkDoubleToScalar(xx * dscale); in setRayPts()
773 dxy->fY = SkDoubleToScalar(yy * dscale); in setRayPts()
776 onPt->fX = tPt.fX + axisFlip * dxy->fY; in setRayPts()
777 onPt->fY = tPt.fY - axisFlip * dxy->fX; in setRayPts()
779 tangent->fX = onPt->fX + dxy->fX; in setRayPts()
780 tangent->fY = onPt->fY + dxy->fY; in setRayPts()
788 SkVector dxy; in conicPerpRay() local
789 conic.evalAt(t, tPt, &dxy); in conicPerpRay()
790 if (dxy.fX == 0 && dxy.fY == 0) { in conicPerpRay()
791 dxy = conic.fPts[2] - conic.fPts[0]; in conicPerpRay()
793 this->setRayPts(*tPt, &dxy, onPt, tangent); in conicPerpRay()
816 SkVector dxy; in cubicPerpRay() local
818 SkEvalCubicAt(cubic, t, tPt, &dxy, nullptr); in cubicPerpRay()
819 if (dxy.fX == 0 && dxy.fY == 0) { in cubicPerpRay()
822 dxy = cubic[2] - cubic[0]; in cubicPerpRay()
824 dxy = cubic[3] - cubic[1]; in cubicPerpRay()
829 dxy = chopped[3] - chopped[2]; in cubicPerpRay()
830 if (dxy.fX == 0 && dxy.fY == 0) { in cubicPerpRay()
831 dxy = chopped[3] - chopped[1]; in cubicPerpRay()
835 if (dxy.fX == 0 && dxy.fY == 0) { in cubicPerpRay()
836 dxy = cPts[3] - cPts[0]; in cubicPerpRay()
839 setRayPts(*tPt, &dxy, onPt, tangent); in cubicPerpRay()
867 SkVector dxy; in quadPerpRay() local
868 SkEvalQuadAt(quad, t, tPt, &dxy); in quadPerpRay()
869 if (dxy.fX == 0 && dxy.fY == 0) { in quadPerpRay()
870 dxy = quad[2] - quad[0]; in quadPerpRay()
872 setRayPts(*tPt, &dxy, onPt, tangent); in quadPerpRay()