Home
last modified time | relevance | path

Searched refs:ManhattanDistanceToPoint (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Drect_unittest.cc872 TEST(RectTest, ManhattanDistanceToPoint) { in TEST() argument
874 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(1, 2))); in TEST()
875 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(4, 6))); in TEST()
876 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(2, 4))); in TEST()
877 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(0, 0))); in TEST()
878 EXPECT_EQ(2, i.ManhattanDistanceToPoint(Point(2, 0))); in TEST()
879 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(5, 0))); in TEST()
880 EXPECT_EQ(1, i.ManhattanDistanceToPoint(Point(5, 4))); in TEST()
881 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(5, 8))); in TEST()
882 EXPECT_EQ(2, i.ManhattanDistanceToPoint(Point(3, 8))); in TEST()
[all …]
Drect_f.h161 float ManhattanDistanceToPoint(const PointF& point) const;
Drect_f.cc202 float RectF::ManhattanDistanceToPoint(const PointF& point) const { in ManhattanDistanceToPoint() function in gfx::RectF
Drect.cc276 int Rect::ManhattanDistanceToPoint(const Point& point) const { in ManhattanDistanceToPoint() function in gfx::Rect
Drect.h201 int ManhattanDistanceToPoint(const Point& point) const;