Home
last modified time | relevance | path

Searched refs:IsOrigin (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dpoint_unittest.cc24 TEST(PointTest, IsOrigin) { in TEST() argument
25 EXPECT_FALSE(Point(1, 0).IsOrigin()); in TEST()
26 EXPECT_FALSE(Point(0, 1).IsOrigin()); in TEST()
27 EXPECT_FALSE(Point(1, 2).IsOrigin()); in TEST()
28 EXPECT_FALSE(Point(-1, 0).IsOrigin()); in TEST()
29 EXPECT_FALSE(Point(0, -1).IsOrigin()); in TEST()
30 EXPECT_FALSE(Point(-1, -2).IsOrigin()); in TEST()
31 EXPECT_TRUE(Point(0, 0).IsOrigin()); in TEST()
33 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin()); in TEST()
34 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin()); in TEST()
[all …]
Dpoint_f.h55 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin() function
Dpoint.h76 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin() function