Lines Matching defs:tan1
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:
219 SkVector tan1 = src[2] - src[1];
220 SkVector bisector = SkFindBisector(tan0, -tan1);
227 // = |2*T 1| * |tan1 - tan0| * |nx|
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:
613 SkVector tan1 = (src[2] == src[3]) ? src[3] - src[1] : src[3] - src[2];
614 SkVector bisector = SkFindBisector(tan0, -tan1);
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:
1518 SkVector tan1 = fPts[2] - fPts[1];
1519 SkVector bisector = SkFindBisector(tan0, -tan1);