Lines Matching refs:edgeVectors
695 void TessellationHelper::EdgeEquations::reset(const EdgeVectors& edgeVectors) {
696 V4f dx = edgeVectors.fDX;
697 V4f dy = edgeVectors.fDY;
699 correct_bad_edges(edgeVectors.fInvLengths >= kInvDistTolerance, &dx, &dy, nullptr);
701 V4f c = dx*edgeVectors.fY2D - dy*edgeVectors.fX2D;
703 V4f test = dy * next_cw(edgeVectors.fX2D) + (-dx * next_cw(edgeVectors.fY2D) + c);
879 void TessellationHelper::OutsetRequest::reset(const EdgeVectors& edgeVectors, GrQuad::Type quadType,
895 (widthChange > 0.f && edgeVectors.fInvLengths[1] > 1.f / widthChange) ||
896 (heightChange > 0.f && edgeVectors.fInvLengths[0] > 1.f / heightChange);
897 } else if (any(edgeVectors.fInvLengths >= kInvDistTolerance)) {
905 if (any(abs(edgeVectors.fCosTheta) >= 0.9f)) {
916 V4f halfTanTheta = -edgeVectors.fCosTheta * edgeVectors.fInvSinTheta;
918 next_ccw(edgeDistances) * next_ccw(edgeVectors.fInvSinTheta) +
919 next_cw(edgeDistances) * edgeVectors.fInvSinTheta;
923 V4f threshold = 0.1f - (1.f / edgeVectors.fInvLengths);
970 void TessellationHelper::Vertices::moveAlong(const EdgeVectors& edgeVectors,
975 SkASSERT(all(abs(edgeVectors.fCosTheta) < 0.9f) ||
976 any(edgeVectors.fCosTheta != edgeVectors.fCosTheta));
983 V4f signedOutsets = -edgeVectors.fInvSinTheta * next_cw(signedEdgeDistances);
984 V4f signedOutsetsCW = edgeVectors.fInvSinTheta * signedEdgeDistances;
987 fX += signedOutsetsCW * next_cw(edgeVectors.fDX) + signedOutsets * edgeVectors.fDX;
988 fY += signedOutsetsCW * next_cw(edgeVectors.fDY) + signedOutsets * edgeVectors.fDY;
991 signedOutsets *= edgeVectors.fInvLengths;
992 signedOutsetsCW *= next_cw(edgeVectors.fInvLengths);