Home
last modified time | relevance | path

Searched refs:kMaxDist (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/rtc_base/numerics/
Dsequence_number_util_unittest.cc247 const uint16_t kMaxDist = kMax / 2 + 1; in TEST() local
250 EXPECT_EQ(kMaxDist, unwrapper.Unwrap(kMaxDist)); in TEST()
253 EXPECT_EQ(kMaxDist, unwrapper.Unwrap(kMaxDist)); in TEST()
257 EXPECT_EQ(kMaxDist, unwrapper.Unwrap(kMaxDist)); in TEST()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2LoopTest.java143 double kMaxDist = 1e-6; in testAreaCentroid() local
147 2 * Math.acos(Math.tan(Math.abs(phi)) / Math.tan(Math.abs(phi) + kMaxDist)); in testAreaCentroid()
170 assertTrue(Math.abs(area - expectedArea) <= 2 * S2.M_PI * kMaxDist); in testAreaCentroid()
173 assertTrue(Math.abs(area - expectedArea) >= 0.01 * kMaxDist); in testAreaCentroid()
177 assertTrue(S2Point.sub(centroid, expectedCentroid).norm() <= 2 * kMaxDist); in testAreaCentroid()