Lines Matching refs:kTolerance
456 constexpr float kTolerance = 1e-3f; in test_chop_quad_at_midtangent() local
465 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(leftRotation, fullRotation/2, kTolerance)); in test_chop_quad_at_midtangent()
466 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rightRotation, fullRotation/2, kTolerance)); in test_chop_quad_at_midtangent()
472 constexpr float kTolerance = 1e-3f; in test_chop_cubic_at_midtangent() local
488 (SkScalarNearlyEqual(fullRotation, 2*SK_ScalarPI, kTolerance) || in test_chop_cubic_at_midtangent()
489 SkScalarNearlyEqual(fullRotation, 0, kTolerance))) { in test_chop_cubic_at_midtangent()
494 REPORTER_ASSERT(reporter, std::abs(leftRotation) - kTolerance <= SK_ScalarPI); in test_chop_cubic_at_midtangent()
495 REPORTER_ASSERT(reporter, std::abs(rightRotation) - kTolerance <= SK_ScalarPI); in test_chop_cubic_at_midtangent()
501 SkScalarNearlyEqual(fullRotation, SK_ScalarPI, kTolerance))) { in test_chop_cubic_at_midtangent()
506 kTolerance)); in test_chop_cubic_at_midtangent()
508 kTolerance)); in test_chop_cubic_at_midtangent()