Searched refs:IsOrigin (Results 1 – 3 of 3) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | point_unittest.cc | 24 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 …]
|
D | point_f.h | 55 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin() function
|
D | point.h | 76 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin() function
|