Lines Matching refs:PointF
18 PointF b = PointF(a); in TEST()
33 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin()); in TEST()
34 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin()); in TEST()
35 EXPECT_FALSE(PointF(0.1f, 2).IsOrigin()); in TEST()
36 EXPECT_FALSE(PointF(-0.1f, 0).IsOrigin()); in TEST()
37 EXPECT_FALSE(PointF(0, -0.1f).IsOrigin()); in TEST()
38 EXPECT_FALSE(PointF(-0.1f, -2).IsOrigin()); in TEST()
39 EXPECT_TRUE(PointF(0, 0).IsOrigin()); in TEST()
71 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0))); in TEST()
72 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.0001f, 0.0001f))); in TEST()
73 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.4999f, 0.4999f))); in TEST()
74 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.5f, 0.5f))); in TEST()
75 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.9999f, 0.9999f))); in TEST()
77 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10, 10))); in TEST()
78 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.0001f, 10.0001f))); in TEST()
79 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.4999f, 10.4999f))); in TEST()
80 EXPECT_EQ(Point(11, 11), ToRoundedPoint(PointF(10.5f, 10.5f))); in TEST()
81 EXPECT_EQ(Point(11, 11), ToRoundedPoint(PointF(10.9999f, 10.9999f))); in TEST()
83 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10, -10))); in TEST()
84 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10.0001f, -10.0001f))); in TEST()
85 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10.4999f, -10.4999f))); in TEST()
86 EXPECT_EQ(Point(-11, -11), ToRoundedPoint(PointF(-10.5f, -10.5f))); in TEST()
87 EXPECT_EQ(Point(-11, -11), ToRoundedPoint(PointF(-10.9999f, -10.9999f))); in TEST()
91 EXPECT_EQ(PointF().ToString(), ScalePoint(PointF(), 2).ToString()); in TEST()
92 EXPECT_EQ(PointF().ToString(), ScalePoint(PointF(), 2, 2).ToString()); in TEST()
94 EXPECT_EQ(PointF(2, -2).ToString(), ScalePoint(PointF(1, -1), 2).ToString()); in TEST()
95 EXPECT_EQ(PointF(2, -2).ToString(), in TEST()
96 ScalePoint(PointF(1, -1), 2, 2).ToString()); in TEST()
98 PointF zero; in TEST()
99 PointF one(1, -1); in TEST()
107 EXPECT_EQ(PointF().ToString(), zero.ToString()); in TEST()
108 EXPECT_EQ(PointF(6, -3).ToString(), one.ToString()); in TEST()
138 PointF a; in TEST()
140 a = PointF(3.5f, 5.5f); in TEST()
141 EXPECT_EQ(PointF(3.5f, 5.5f).ToString(), a.ToString()); in TEST()
142 a.SetToMax(PointF(2.5f, 4.5f)); in TEST()
143 EXPECT_EQ(PointF(3.5f, 5.5f).ToString(), a.ToString()); in TEST()
144 a.SetToMax(PointF(3.5f, 5.5f)); in TEST()
145 EXPECT_EQ(PointF(3.5f, 5.5f).ToString(), a.ToString()); in TEST()
146 a.SetToMax(PointF(4.5f, 2.5f)); in TEST()
147 EXPECT_EQ(PointF(4.5f, 5.5f).ToString(), a.ToString()); in TEST()
148 a.SetToMax(PointF(8.5f, 10.5f)); in TEST()
149 EXPECT_EQ(PointF(8.5f, 10.5f).ToString(), a.ToString()); in TEST()
151 a.SetToMin(PointF(9.5f, 11.5f)); in TEST()
152 EXPECT_EQ(PointF(8.5f, 10.5f).ToString(), a.ToString()); in TEST()
153 a.SetToMin(PointF(8.5f, 10.5f)); in TEST()
154 EXPECT_EQ(PointF(8.5f, 10.5f).ToString(), a.ToString()); in TEST()
155 a.SetToMin(PointF(11.5f, 9.5f)); in TEST()
156 EXPECT_EQ(PointF(8.5f, 9.5f).ToString(), a.ToString()); in TEST()
157 a.SetToMin(PointF(7.5f, 11.5f)); in TEST()
158 EXPECT_EQ(PointF(7.5f, 9.5f).ToString(), a.ToString()); in TEST()
159 a.SetToMin(PointF(3.5f, 5.5f)); in TEST()
160 EXPECT_EQ(PointF(3.5f, 5.5f).ToString(), a.ToString()); in TEST()