Lines Matching refs:PointF
354 PointF center;
358 EXPECT_TRUE(center == PointF(10, 10));
362 EXPECT_TRUE(center == PointF(20, 20));
366 EXPECT_TRUE(center == PointF(21, 21));
370 EXPECT_TRUE(center == PointF(10, 20));
372 EXPECT_TRUE(center == PointF(20, 10));
376 EXPECT_TRUE(center == PointF(20.5f, 20.5f));
380 EXPECT_TRUE(center == PointF(21.5f, 21.5f));
762 PointF a;
763 PointF b;
767 { PointF(4.2f, 6.8f), PointF(4.2f, 6.8f),
769 { PointF(4.2f, 6.8f), PointF(8.5f, 6.8f),
771 { PointF(4.2f, 6.8f), PointF(4.2f, 9.3f),
773 { PointF(4.2f, 6.8f), PointF(8.5f, 9.3f),
776 { PointF(4.2f, 6.8f), PointF(4.2f, 6.8f),
778 { PointF(8.5f, 6.8f), PointF(4.2f, 6.8f),
780 { PointF(4.2f, 9.3f), PointF(4.2f, 6.8f),
782 { PointF(8.5f, 9.3f), PointF(4.2f, 6.8f),
785 { PointF(4.2f, 6.8f), PointF(6.8f, 4.2f),
787 { PointF(-4.2f, -6.8f), PointF(-6.8f, -4.2f),
789 { PointF(-4.2f, 6.8f), PointF(6.8f, -4.2f),
862 EXPECT_EQ(PointF(1.1f, 2.1f).ToString(), f.origin().ToString());
863 EXPECT_EQ(PointF(4.2f, 2.1f).ToString(), f.top_right().ToString());
864 EXPECT_EQ(PointF(1.1f, 6.2f).ToString(), f.bottom_left().ToString());
865 EXPECT_EQ(PointF(4.2f, 6.2f).ToString(), f.bottom_right().ToString());
883 EXPECT_FLOAT_EQ(0.f, f.ManhattanDistanceToPoint(PointF(1.1f, 2.1f)));
884 EXPECT_FLOAT_EQ(0.f, f.ManhattanDistanceToPoint(PointF(4.2f, 6.f)));
885 EXPECT_FLOAT_EQ(0.f, f.ManhattanDistanceToPoint(PointF(2.f, 4.f)));
886 EXPECT_FLOAT_EQ(3.2f, f.ManhattanDistanceToPoint(PointF(0.f, 0.f)));
887 EXPECT_FLOAT_EQ(2.1f, f.ManhattanDistanceToPoint(PointF(2.f, 0.f)));
888 EXPECT_FLOAT_EQ(2.9f, f.ManhattanDistanceToPoint(PointF(5.f, 0.f)));
889 EXPECT_FLOAT_EQ(.8f, f.ManhattanDistanceToPoint(PointF(5.f, 4.f)));
890 EXPECT_FLOAT_EQ(2.6f, f.ManhattanDistanceToPoint(PointF(5.f, 8.f)));
891 EXPECT_FLOAT_EQ(1.8f, f.ManhattanDistanceToPoint(PointF(3.f, 8.f)));
892 EXPECT_FLOAT_EQ(1.9f, f.ManhattanDistanceToPoint(PointF(0.f, 7.f)));
893 EXPECT_FLOAT_EQ(1.1f, f.ManhattanDistanceToPoint(PointF(0.f, 3.f)));