Searched refs:nearlyEqual (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | Vector3Test.java | 46 private boolean nearlyEqual(float a, float b) { in nearlyEqual() method in Vector3Test 70 assertTrue(nearlyEqual(unitXAxis.norm(), 1.0f)); in testVector3Norm() 71 assertTrue(nearlyEqual(unitYAxis.norm(), 1.0f)); in testVector3Norm() 72 assertTrue(nearlyEqual(unitZAxis.norm(), 1.0f)); in testVector3Norm() 73 assertTrue(nearlyEqual(x1y1.norm(), (float)Math.sqrt(2))); in testVector3Norm() 78 assertTrue(nearlyEqual(unitXAxis.angleBetween(unitXAxis), 0.0f)); in testVector3AngleBetween() 79 assertTrue(nearlyEqual(unitYAxis.angleBetween(unitYAxis), 0.0f)); in testVector3AngleBetween() 80 assertTrue(nearlyEqual(unitZAxis.angleBetween(unitZAxis), 0.0f)); in testVector3AngleBetween() 83 assertTrue(nearlyEqual(unitXAxis.angleBetween(unitYAxis), 90.0f)); in testVector3AngleBetween() 84 assertTrue(nearlyEqual(unitXAxis.angleBetween(unitZAxis), 90.0f)); in testVector3AngleBetween() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 122 static bool nearlyEqual(float a, float b) { in nearlyEqual() function 128 static bool nearlyEqual(const skcms_TransferFunction& x, const skcms_TransferFunction& y) { in nearlyEqual() function 129 return nearlyEqual(x.g, y.g) in nearlyEqual() 130 && nearlyEqual(x.a, y.a) in nearlyEqual() 131 && nearlyEqual(x.b, y.b) in nearlyEqual() 132 && nearlyEqual(x.c, y.c) in nearlyEqual() 133 && nearlyEqual(x.d, y.d) in nearlyEqual() 134 && nearlyEqual(x.e, y.e) in nearlyEqual() 135 && nearlyEqual(x.f, y.f); in nearlyEqual() 138 static bool nearlyEqual(const skcms_Matrix3x3& x, const skcms_Matrix3x3& y) { in nearlyEqual() function [all …]
|