Home
last modified time | relevance | path

Searched refs:nearlyEqual (Results 1 – 11 of 11) sorted by relevance

/external/skia/docs/examples/
DMatrix_dump.cpp10 SkMatrix nearlyEqual; in draw() local
11 nearlyEqual.setAll(0.7071f, -0.7071f, 0, 0.7071f, 0.7071f, 0, 0, 0, 1); in draw()
12 nearlyEqual.dump(); in draw()
13 SkDebugf("matrix %c= nearlyEqual\n", matrix == nearlyEqual ? '=' : '!'); in draw()
/external/skia/modules/skparagraph/src/
DTextStyle.cpp94 nearlyEqual(fLetterSpacing, that.fLetterSpacing) && in equalsByFonts()
95 nearlyEqual(fWordSpacing, that.fWordSpacing) && in equalsByFonts()
96 nearlyEqual(fHeight, that.fHeight) && in equalsByFonts()
97 nearlyEqual(fFontSize, that.fFontSize) && in equalsByFonts()
168 return nearlyEqual(fWidth, other.fWidth) && in equals()
169 nearlyEqual(fHeight, other.fHeight) && in equals()
173 nearlyEqual(fBaselineOffset, other.fBaselineOffset)); in equals()
DTextLine.cpp474 SkAssertResult(nearlyEqual(shift, maxWidth - textLen)); in justify()
1087 nearlyEqual(lastRun->heightMultiplier(), in getRectsForRange()
1092 if (nearlyEqual(lastBox.rect.fTop, clip.fTop) && in getRectsForRange()
1093 nearlyEqual(lastBox.rect.fBottom, clip.fBottom) && in getRectsForRange()
1094 (nearlyEqual(lastBox.rect.fLeft, clip.fRight) || in getRectsForRange()
1095 nearlyEqual(lastBox.rect.fRight, clip.fLeft))) in getRectsForRange()
/external/angle/src/tests/gl_tests/gles1/
DMatrixBuiltinsTest.cpp51 EXPECT_TRUE(testMatrix.nearlyEqual(0.00001f, outputMatrix)); in TEST_P()
72 EXPECT_TRUE(testMatrix.nearlyEqual(0.00001f, outputMatrix)); in TEST_P()
93 EXPECT_TRUE(testMatrix.nearlyEqual(0.00001f, outputMatrix)); in TEST_P()
116 EXPECT_TRUE(testMatrix.nearlyEqual(0.00001f, outputMatrix)); in TEST_P()
138 EXPECT_TRUE(testMatrix.nearlyEqual(0.00001f, outputMatrix)); in TEST_P()
/external/skia/modules/skparagraph/include/
DParagraphStyle.h56 nearlyEqual(this->fLeading, rhs.fLeading) &&
57 nearlyEqual(this->fHeight, rhs.fHeight) &&
58 nearlyEqual(this->fFontSize, rhs.fFontSize) &&
DTextStyle.h28 static inline bool nearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance = SK_ScalarNearlyZero) {
/external/angle/src/common/
Dmatrix_utils_unittest.cpp2431 EXPECT_TRUE(a.nearlyEqual(0.1f, b)); in TEST()
2438 EXPECT_TRUE(a.nearlyEqual(0.1f, b)); in TEST()
Dmatrix_utils.h112 bool nearlyEqual(T epsilon, const Matrix<T> &m) const in nearlyEqual() function
/external/skqp/docs/
DSkMatrix_Reference.bmh2776 SkMatrix nearlyEqual;
2777 nearlyEqual.setAll(0.7071f, -0.7071f, 0, 0.7071f, 0.7071f, 0, 0, 0, 1);
2778 nearlyEqual.dump();
2779 SkDebugf("matrix %c= nearlyEqual\n", matrix == nearlyEqual ? '=' : '!');
2783 matrix != nearlyEqual
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp5580 SkASSERT(nearlyEqual(1, SK_ScalarInfinity) == false); in DEF_TEST()
5581 SkASSERT(nearlyEqual(1, SK_ScalarNegativeInfinity) == false); in DEF_TEST()
5582 SkASSERT(nearlyEqual(1, SK_ScalarNaN) == false); in DEF_TEST()
5584 SkASSERT(nearlyEqual(SK_ScalarInfinity, SK_ScalarInfinity) == true); in DEF_TEST()
5585 SkASSERT(nearlyEqual(SK_ScalarInfinity, SK_ScalarNegativeInfinity) == false); in DEF_TEST()
5586 SkASSERT(nearlyEqual(SK_ScalarInfinity, SK_ScalarNaN) == false); in DEF_TEST()
5588 SkASSERT(nearlyEqual(SK_ScalarNegativeInfinity, SK_ScalarInfinity) == false); in DEF_TEST()
5589 SkASSERT(nearlyEqual(SK_ScalarNegativeInfinity, SK_ScalarNegativeInfinity) == true); in DEF_TEST()
5590 SkASSERT(nearlyEqual(SK_ScalarNegativeInfinity, SK_ScalarNaN) == false); in DEF_TEST()
5592 SkASSERT(nearlyEqual(SK_ScalarNaN, SK_ScalarInfinity) == false); in DEF_TEST()
[all …]
/external/skqp/site/user/api/
DSkMatrix_Reference.md4084 matrix != nearlyEqual