Home
last modified time | relevance | path

Searched refs:tan0 (Results 1 – 8 of 8) sorted by relevance

/external/skqp/src/gpu/ccpr/
DGrCCFillGeometry.cpp119 static inline bool is_convex_curve_monotonic(const Sk2f& startPt, const Sk2f& tan0, in is_convex_curve_monotonic() argument
122 float dot0 = dot(tan0, v); in is_convex_curve_monotonic()
154 Sk2f tan0 = p1 - p0; in appendQuadratics() local
158 if (is_convex_curve_monotonic(p0, tan0, p2, tan1)) { in appendQuadratics()
165 Sk2f n = normalize(tan0) - normalize(tan1); in appendQuadratics()
178 Sk2f dQ1n = (tan0 - tan1) * n; in appendQuadratics()
179 Sk2f dQ0n = tan0 * n; in appendQuadratics()
183 Sk2f p01 = SkNx_fma(t, tan0, p0); in appendQuadratics()
220 const Sk2f& p3, Sk2f* tan0, Sk2f* tan1) { in get_cubic_tangents() argument
221 *tan0 = first_unless_nearly_zero(p1 - p0, p2 - p0); in get_cubic_tangents()
[all …]
DGrCCStrokeGeometry.cpp143 Sk2f tan0 = p1 - p0; in quadraticTo() local
148 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue() || // p0 ~= p1 in quadraticTo()
155 normalize2(tan0, tan1, normals); in quadraticTo()
178 leftTan = tan0; in quadraticTo()
260 Sk2f tan0 = p1 - p0; in cubicTo() local
264 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 in cubicTo()
266 tan0 = p2 - p0; in cubicTo()
267 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 ~= p2 in cubicTo()
283 normalize2(tan0, tan1, normals); in cubicTo()
308 leftTan = tan0; in cubicTo()
DGrCCFillGeometry.h105 const Sk2f& p2, const Sk2f& p3, const Sk2f& tan0,
/external/skia/src/gpu/tessellate/
DGrStrokeIndirectTessellator.cpp126 SkVector tan0 = ((pts[0] == pts[1]) ? pts[2] : pts[1]) - pts[0]; in countCubic() local
128 float rotation = SkMeasureAngleBetweenVectors(tan0, tan1); in countCubic()
130 SkVector nextTan = (tan0.isZero()) ? tan1 : tan0; in countCubic()
320 auto tan0 = p1 - p0; in flushQuads() local
322 auto rotation = grvx::approx_angle_between_vectors(tan0, tan1); in flushQuads()
326 auto nextTan = if_both_then_else((tan0 == 0), tan1, tan0); in flushQuads()
376 auto tan0 = p1 - p0; in flushCubics() local
377 tan0 = if_both_then_else((tan0 == 0), p2 - p0, tan0); in flushCubics()
385 auto rotation = grvx::approx_angle_between_vectors(tan0, tan1); in flushCubics()
389 auto nextTan = if_both_then_else((tan0 == 0), tan1, tan0); in flushCubics()
DGrStrokeHardwareTessellator.cpp525 SkVector tan0 = junctionPoint - fLastControlPoint; in internalJoinTo() local
527 float rotation = SkMeasureAngleBetweenVectors(tan0, tan1); in internalJoinTo()
539 SkPoint bisector = SkFindBisector(tan0, tan1); in internalJoinTo()
/external/skia/tests/
DStrokeIndirectTest.cpp378 SkVector tan0 = in verifyResolveLevels() local
382 float rotation = SkMeasureAngleBetweenVectors(tan0, tan1); in verifyResolveLevels()
384 rotation += SkMeasureAngleBetweenVectors(p[0] - lastControlPoint, tan0); in verifyResolveLevels()
464 SkVector tan0 = ((p[0] == p[1]) ? (p[1] == p[2]) ? p[3] : p[2] : p[1]) - p[0]; in verifyBuffers() local
466 float rotation = SkMeasureAngleBetweenVectors(tan0, tan1); in verifyBuffers()
471 rotation += SkMeasureAngleBetweenVectors(lastTangent, tan0); in verifyBuffers()
/external/skia/src/core/
DSkGeometry.cpp217 SkVector tan0 = src[1] - src[0]; in SkFindQuadMidTangent() local
219 SkVector bisector = SkFindBisector(tan0, -tan1); in SkFindQuadMidTangent()
232 float T = sk_ieee_float_divide(tan0.dot(bisector), (tan0 - tan1).dot(bisector)); in SkFindQuadMidTangent()
616 SkVector tan0 = (src[0] == src[1]) ? src[2] - src[0] : src[1] - src[0]; in SkFindCubicMidTangent() local
618 SkVector bisector = SkFindBisector(tan0, -tan1); in SkFindCubicMidTangent()
654 coeffs = C_x * tan0.x() + C_y * tan0.y(); in SkFindCubicMidTangent()
1521 SkVector tan0 = fPts[1] - fPts[0]; in findMidTangent() local
1523 SkVector bisector = SkFindBisector(tan0, -tan1); in findMidTangent()
/external/skia/src/gpu/geometry/
DGrPathUtils.cpp657 float2 tan0 = skvx::if_then_else(C != 0, C, p2 - p0); in findCubicConvex180Chops() local
658 a = grvx::dot(tan0, A); in findCubicConvex180Chops()
659 b_over_minus_2 = -grvx::dot(tan0, B); in findCubicConvex180Chops()
660 c = grvx::dot(tan0, C); in findCubicConvex180Chops()