Lines Matching refs:Geom

10     Geom::Path path1;
11 Geom::Path path2;
12 Geom::Path path3;
13 Geom::Path path4;
16 CurveTest() : path4(Geom::Point(3,5)) // Just a moveto
19 path1.append(Geom::LineSegment(Geom::Point(0,0),Geom::Point(1,0)));
20 path1.append(Geom::LineSegment(Geom::Point(1,0),Geom::Point(1,1)));
23 path2.append(Geom::LineSegment(Geom::Point(2,0),Geom::Point(3,0)));
24 path2.append(Geom::CubicBezier(Geom::Point(3,0),Geom::Point(2,1),Geom::Point(1,1),Geom::Point(2,0)));
28 path3.append(Geom::EllipticalArc(Geom::Point(4,0),1,2,M_PI,false,false,Geom::Point(5,1)));
29 path3.append(Geom::LineSegment(Geom::Point(5,1),Geom::Point(5,2)));
30 path3.append(Geom::LineSegment(Geom::Point(6,4),Geom::Point(2,4)));
42 Geom::PathVector pv;
47 Geom::PathVector pv;
48 pv.push_back(Geom::Path());
53 Geom::PathVector pv((Geom::Path()));
66 Geom::PathVector pv;
79 Geom::PathVector pv;
84 Geom::PathVector pv;
85 pv.push_back(Geom::Path());
90 Geom::PathVector pv((Geom::Path()));
103 Geom::PathVector pv;
115 TS_ASSERT(SPCurve(Geom::PathVector()).is_empty());
124 TS_ASSERT(!SPCurve(Geom::PathVector()).is_closed());
125 Geom::PathVector pv((Geom::Path()));
137 Geom::PathVector pv(path4);
143 /* Geom::Curve can't be compared very easily (?)
144 Geom::PathVector pv(1, path4);
170 Geom::PathVector pv;
189 TS_ASSERT_EQUALS(*(SPCurve(path1).first_point()) , Geom::Point(0,0));
190 TS_ASSERT_EQUALS(*(SPCurve(path2).first_point()) , Geom::Point(2,0));
191 TS_ASSERT_EQUALS(*(SPCurve(path3).first_point()) , Geom::Point(4,0));
192 TS_ASSERT_EQUALS(*(SPCurve(path4).first_point()) , Geom::Point(3,5));
193 Geom::PathVector pv;
198 TS_ASSERT_EQUALS(*(SPCurve(pv).first_point()) , Geom::Point(0,0));
200 TS_ASSERT_EQUALS(*(SPCurve(pv).first_point()) , Geom::Point(3,5));
205 TS_ASSERT_EQUALS(*(SPCurve(path1).last_point()) , Geom::Point(0,0));
206 TS_ASSERT_EQUALS(*(SPCurve(path2).last_point()) , Geom::Point(2,0));
207 TS_ASSERT_EQUALS(*(SPCurve(path3).last_point()) , Geom::Point(8,4));
208 TS_ASSERT_EQUALS(*(SPCurve(path4).last_point()) , Geom::Point(3,5));
209 Geom::PathVector pv;
214 TS_ASSERT_EQUALS(*(SPCurve(pv).last_point()) , Geom::Point(8,4));
216 TS_ASSERT_EQUALS(*(SPCurve(pv).last_point()) , Geom::Point(3,5));
221 TS_ASSERT_EQUALS( *(SPCurve(path1).second_point()) , Geom::Point(1,0));
222 TS_ASSERT_EQUALS( *(SPCurve(path2).second_point()) , Geom::Point(3,0));
223 TS_ASSERT_EQUALS( *(SPCurve(path3).second_point()) , Geom::Point(5,1));
224 TS_ASSERT_EQUALS( *(SPCurve(path4).second_point()) , Geom::Point(3,5));
225 Geom::PathVector pv;
229 TS_ASSERT_EQUALS( *(SPCurve(pv).second_point()) , Geom::Point(1,0));
231 TS_ASSERT_EQUALS( *SPCurve(pv).second_point(), Geom::Point(0,0) );
236 TS_ASSERT_EQUALS( *(SPCurve(Geom::PathVector(path1)).penultimate_point()) , Geom::Point(1,1));
237 TS_ASSERT_EQUALS( *(SPCurve(Geom::PathVector(path2)).penultimate_point()) , Geom::Point(3,0));
238 TS_ASSERT_EQUALS( *(SPCurve(Geom::PathVector(path3)).penultimate_point()) , Geom::Point(6,4));
239 TS_ASSERT_EQUALS( *(SPCurve(Geom::PathVector(path4)).penultimate_point()) , Geom::Point(3,5));
240 Geom::PathVector pv;
244 TS_ASSERT_EQUALS( *(SPCurve(pv).penultimate_point()) , Geom::Point(6,4));
246 TS_ASSERT_EQUALS( *(SPCurve(pv).penultimate_point()) , Geom::Point(8,4));