Lines Matching refs:B2DPoint
297 const B2DPoint a00(0.0, 0.0); in SetUp()
298 const B2DPoint a10(1.0, 0.0); in SetUp()
299 const B2DPoint a11(1.0, 1.0); in SetUp()
300 const B2DPoint a01(0.0, 1.0); in SetUp()
301 const B2DPoint middle( 0.5, 0.5 ); in SetUp()
302 const B2DPoint quarterDown( 0.25, 0.25 ); in SetUp()
303 const B2DPoint quarterUp( 0.75, 0.75 ); in SetUp()
323 aQuarterCircle = B2DCubicBezier(a10 + B2DPoint(1.0,0.0), in SetUp()
324 B2DPoint(B2DPoint( 1.0, h ) + B2DPoint(1.0,0.0)), in SetUp()
325 B2DPoint(B2DPoint( h, 1.0) + B2DPoint(1.0,0.0)), in SetUp()
326 a01 + B2DPoint(1.0,0.0)); in SetUp()
328 aCusp = B2DCubicBezier(a00 + B2DPoint(2.0,0.0), in SetUp()
329 B2DPoint(a11 + B2DPoint(2.0,0.0)), in SetUp()
330 B2DPoint(a01 + B2DPoint(2.0,0.0)), in SetUp()
331 a10 + B2DPoint(2.0,0.0)); in SetUp()
333 aLoop = B2DCubicBezier(a00 + B2DPoint(3.0,0.0), in SetUp()
334 B2DPoint(a01 + B2DPoint(3.0,0.0)), in SetUp()
335 B2DPoint(a10 + B2DPoint(3.0,0.0)), in SetUp()
336 a00 + B2DPoint(3.0,0.0)); in SetUp()
338 aStraightLineDistinctEndPoints = B2DCubicBezier(a00 + B2DPoint(4.0,0.0), in SetUp()
339 B2DPoint(middle + B2DPoint(4.0,0.0)), in SetUp()
340 B2DPoint(middle + B2DPoint(4.0,0.0)), in SetUp()
341 a11 + B2DPoint(4.0,0.0)); in SetUp()
343 aStraightLineDistinctEndPoints2 = B2DCubicBezier(a00 + B2DPoint(5.0,0.0), in SetUp()
344 B2DPoint(quarterDown + B2DPoint(5.0,0.0)), in SetUp()
345 B2DPoint(quarterUp + B2DPoint(5.0,0.0)), in SetUp()
346 a11 + B2DPoint(5.0,0.0)); in SetUp()
348 aStraightLineIdenticalEndPoints = B2DCubicBezier(a00 + B2DPoint(6.0,0.0), in SetUp()
349 B2DPoint(a11 + B2DPoint(6.0,0.0)), in SetUp()
350 B2DPoint(a11 + B2DPoint(6.0,0.0)), in SetUp()
351 a00 + B2DPoint(6.0,0.0)); in SetUp()
353 aStraightLineIdenticalEndPoints2 = B2DCubicBezier(a00 + B2DPoint(7.0,0.0), in SetUp()
354 B2DPoint(quarterDown + B2DPoint(7.0,0.0)), in SetUp()
355 B2DPoint(quarterUp + B2DPoint(7.0,0.0)), in SetUp()
356 a00 + B2DPoint(7.0,0.0)); in SetUp()
358 aCrossing = B2DCubicBezier(a00 + B2DPoint(8.0,0.0), in SetUp()
359 B2DPoint(B2DPoint(2.0,2.0) + B2DPoint(8.0,0.0)), in SetUp()
360 B2DPoint(B2DPoint(-1.0,2.0) + B2DPoint(8.0,0.0)), in SetUp()
361 a10 + B2DPoint(8.0,0.0)); in SetUp()
871 aPoly.appendBezierSegment(B2DPoint(1,1),B2DPoint(2,2),B2DPoint(3,3)); in TEST_F()
873 ASSERT_TRUE(aPoly.getB2DPoint(0) == B2DPoint(3,3)) << "#1 first polygon point wrong"; in TEST_F()
874 ASSERT_TRUE(aPoly.getPrevControlPoint(0) == B2DPoint(2,2)) << "#1 first control point wrong"; in TEST_F()
875 ASSERT_TRUE(aPoly.getNextControlPoint(0) == B2DPoint(3,3)) << "#1 second control point wrong"; in TEST_F()
878 aPoly.setNextControlPoint(0,B2DPoint(4,4)); in TEST_F()
879 ASSERT_TRUE(aPoly.getNextControlPoint(0) == B2DPoint(4,4)) << "#1.1 second control point wrong"; in TEST_F()
885 ASSERT_TRUE(aPoly.getB2DPoint(0) == B2DPoint(3,3)) << "resetControlPoints() did not clear"; in TEST_F()
886 …ASSERT_TRUE(aPoly.getPrevControlPoint(0) == B2DPoint(3,3)) << "resetControlPoints() did not clear"; in TEST_F()
887 …ASSERT_TRUE(aPoly.getNextControlPoint(0) == B2DPoint(3,3)) << "resetControlPoints() did not clear"; in TEST_F()
891 aPoly.append(B2DPoint(0,0)); in TEST_F()
892 aPoly.appendBezierSegment(B2DPoint(1,1),B2DPoint(2,2),B2DPoint(3,3)); in TEST_F()
894 ASSERT_TRUE(aPoly.getB2DPoint(0) == B2DPoint(0,0)) << "#2 first polygon point wrong"; in TEST_F()
895 ASSERT_TRUE(aPoly.getPrevControlPoint(0) == B2DPoint(0,0)) << "#2 first control point wrong"; in TEST_F()
896 ASSERT_TRUE(aPoly.getNextControlPoint(0) == B2DPoint(1,1)) << "#2 second control point wrong"; in TEST_F()
897 ASSERT_TRUE(aPoly.getPrevControlPoint(1) == B2DPoint(2,2)) << "#2 third control point wrong"; in TEST_F()
898 ASSERT_TRUE(aPoly.getNextControlPoint(1) == B2DPoint(3,3)) << "#2 fourth control point wrong"; in TEST_F()
899 ASSERT_TRUE(aPoly.getB2DPoint(1) == B2DPoint(3,3)) << "#2 second polygon point wrong"; in TEST_F()
922 aRect2.append( B2DPoint(0,0) ); in TEST_F()
923 aRect2.append( B2DPoint(1,0) ); in TEST_F()
924 aRect2.append( B2DPoint(1,.5)); in TEST_F()
925 aRect2.append( B2DPoint(1,1) ); in TEST_F()
926 aRect2.append( B2DPoint(0,1) ); in TEST_F()
930 aNonRect1.append( B2DPoint(0,0) ); in TEST_F()
931 aNonRect1.append( B2DPoint(1,0) ); in TEST_F()
932 aNonRect1.append( B2DPoint(1,1) ); in TEST_F()
933 aNonRect1.append( B2DPoint(0.5,1) ); in TEST_F()
934 aNonRect1.append( B2DPoint(0.5,0) ); in TEST_F()
938 aNonRect2.append( B2DPoint(0,0) ); in TEST_F()
939 aNonRect2.append( B2DPoint(1,1) ); in TEST_F()
940 aNonRect2.append( B2DPoint(1,0) ); in TEST_F()
941 aNonRect2.append( B2DPoint(0,1) ); in TEST_F()
945 aNonRect3.append( B2DPoint(0,0) ); in TEST_F()
946 aNonRect3.append( B2DPoint(1,0) ); in TEST_F()
947 aNonRect3.append( B2DPoint(1,1) ); in TEST_F()
951 aNonRect4.append( B2DPoint(0,0) ); in TEST_F()
952 aNonRect4.append( B2DPoint(1,0) ); in TEST_F()
953 aNonRect4.append( B2DPoint(1,1) ); in TEST_F()
954 aNonRect4.append( B2DPoint(0,1) ); in TEST_F()
957 aNonRect5.append( B2DPoint(0,0) ); in TEST_F()
958 aNonRect5.append( B2DPoint(1,0) ); in TEST_F()
959 aNonRect5.append( B2DPoint(1,1) ); in TEST_F()
960 aNonRect5.append( B2DPoint(0,1) ); in TEST_F()
961 aNonRect5.setControlPoints(1,B2DPoint(1,0),B2DPoint(-11,0)); in TEST_F()