• Home
  • Raw
  • Download

Lines Matching refs:kTolerance

54 static constexpr float kTolerance = 1e-2f;  variable
114 correct_bad_edges(metadata.fInvLengths >= 1.f / kTolerance, &dx, &dy, nullptr); in get_edge_equations()
119 if (any(test < -kTolerance)) { in get_edge_equations()
136 if (any(metadata.fInvLengths >= 1.f / kTolerance)) { in get_optimized_outset()
196 correct_bad_edges(fma(e1x, e1x, e1y * e1y) < kTolerance * kTolerance, &e1x, &e1y, &e1w); in outset_projected_vertices()
202 correct_bad_edges(fma(e2x, e2x, e2y * e2y) < kTolerance * kTolerance, &e2x, &e2y, &e2w); in outset_projected_vertices()
277 correct_bad_coords(abs(denom) < kTolerance, &quad->fX, &quad->fY, &quad->fW); in outset_projected_vertices()
284 correct_bad_edges(fma(e1u, e1u, e1v * e1v) < kTolerance * kTolerance, &e1u, &e1v, &e1r); in outset_projected_vertices()
289 correct_bad_edges(fma(e2u, e2u, e2v * e2v) < kTolerance * kTolerance, &e2u, &e2v, &e2r); in outset_projected_vertices()
295 correct_bad_coords(abs(denom) < kTolerance, &quad->fU, &quad->fV, &quad->fR); in outset_projected_vertices()
297 correct_bad_coords(abs(denom) < kTolerance, &quad->fU, &quad->fV, nullptr); in outset_projected_vertices()
491 correct_bad_coords(abs(denom) < kTolerance, &px, &py, nullptr); in compute_degenerate_quad()
509 M4f d1v0 = dists1 < kTolerance; in compute_degenerate_quad()
510 M4f d2v0 = dists2 < kTolerance; in compute_degenerate_quad()
531 if (dists1[2] < kTolerance && dists1[3] < kTolerance) { in compute_degenerate_quad()
557 if (SkScalarAbs(eDenom[0]) > kTolerance) { in compute_degenerate_quad()
561 if (SkScalarAbs(eDenom[1]) > kTolerance) { in compute_degenerate_quad()