Lines Matching defs:tan0
213 // Tangents point in the direction of increasing T, so tan0 and -tan1 both point toward the
214 // midtangent. The bisector of tan0 and -tan1 is orthogonal to the midtangent:
218 SkVector tan0 = src[1] - src[0];
220 SkVector bisector = SkFindBisector(tan0, -tan1);
227 // = |2*T 1| * |tan1 - tan0| * |nx|
228 // |2*tan0 | |ny|
230 // = 2*T * ((tan1 - tan0) dot bisector) + (2*tan0 dot bisector)
232 // T = (tan0 dot bisector) / ((tan0 - tan1) dot bisector)
233 float T = sk_ieee_float_divide(tan0.dot(bisector), (tan0 - tan1).dot(bisector));
607 // Tangents point in the direction of increasing T, so tan0 and -tan1 both point toward the
608 // midtangent. The bisector of tan0 and -tan1 is orthogonal to the midtangent:
612 SkVector tan0 = (src[0] == src[1]) ? src[2] - src[0] : src[1] - src[0];
614 SkVector bisector = SkFindBisector(tan0, -tan1);
648 // tangent dot tan0 == 0
650 coeffs = C_x * tan0.x() + C_y * tan0.y();
1512 // Tangents point in the direction of increasing T, so tan0 and -tan1 both point toward the
1513 // midtangent. The bisector of tan0 and -tan1 is orthogonal to the midtangent:
1517 SkVector tan0 = fPts[1] - fPts[0];
1519 SkVector bisector = SkFindBisector(tan0, -tan1);