32 SET_WITH_LTPT3D::iterator iter;
35 TS_ASSERT_EQUALS(iter, a_set.end());
53 TS_ASSERT_EQUALS(functor1(pt1, pt2),
false);
54 TS_ASSERT_EQUALS(functor1(pt1, pt3),
true);
55 TS_ASSERT_EQUALS(functor1(pt1, pt4),
true);
56 TS_ASSERT_EQUALS(functor1(pt2, pt1),
false);
57 TS_ASSERT_EQUALS(functor1(pt2, pt3),
true);
58 TS_ASSERT_EQUALS(functor1(pt2, pt4),
true);
59 TS_ASSERT_EQUALS(functor1(pt3, pt1),
false);
60 TS_ASSERT_EQUALS(functor1(pt3, pt2),
false);
61 TS_ASSERT_EQUALS(functor1(pt3, pt4),
true);
62 TS_ASSERT_EQUALS(functor1(pt4, pt1),
false);
63 TS_ASSERT_EQUALS(functor1(pt4, pt2),
false);
64 TS_ASSERT_EQUALS(functor1(pt4, pt3),
false);
75 TS_ASSERT_EQUALS(functor1(pt1, pt2),
false);
76 TS_ASSERT_EQUALS(functor1(pt2, pt1),
false);
88 TS_ASSERT_EQUALS(functor1(pt1, pt2),
false);
89 TS_ASSERT_EQUALS(functor1(pt1, pt3),
true);
90 TS_ASSERT_EQUALS(functor1(pt1, pt4),
true);
91 TS_ASSERT_EQUALS(functor1(pt2, pt1),
false);
92 TS_ASSERT_EQUALS(functor1(pt2, pt3),
true);
93 TS_ASSERT_EQUALS(functor1(pt2, pt4),
true);
94 TS_ASSERT_EQUALS(functor1(pt3, pt1),
false);
95 TS_ASSERT_EQUALS(functor1(pt3, pt2),
false);
96 TS_ASSERT_EQUALS(functor1(pt3, pt4),
true);
97 TS_ASSERT_EQUALS(functor1(pt4, pt1),
false);
98 TS_ASSERT_EQUALS(functor1(pt4, pt2),
false);
99 TS_ASSERT_EQUALS(functor1(pt4, pt3),
false);
111 std::set<xms::Pt3d, xms::ltPt3d> set_pt3d(functor1);
114 set_pt3d.insert(pt4);
115 set_pt3d.insert(pt3);
116 set_pt3d.insert(pt2);
117 set_pt3d.insert(pt1);
119 TS_ASSERT_EQUALS(set_pt3d.size(), 3);
123 std::set<xms::Pt3d, xms::ltPt3d>::iterator iter;
124 iter = set_pt3d.begin();
125 TS_ASSERT_EQUALS(*iter, pt2);
127 TS_ASSERT_EQUALS(*iter, pt3);
129 TS_ASSERT_EQUALS(*iter, pt4);
140 std::set<xms::Pt3d, xms::ltPt3d> set_pt3d(
xms::ltPt3d(0.0001, 0.0001));
143 set_pt3d.insert(pt4);
144 set_pt3d.insert(pt3);
145 set_pt3d.insert(pt2);
146 set_pt3d.insert(pt1);
148 TS_ASSERT_EQUALS(set_pt3d.size(), 3);
152 std::set<xms::Pt3d, xms::ltPt3d>::iterator iter;
153 iter = set_pt3d.begin();
154 TS_ASSERT_EQUALS(*iter, pt2);
156 TS_ASSERT_EQUALS(*iter, pt3);
158 TS_ASSERT_EQUALS(*iter, pt4);
165 SET_WITH_LTPT3D::iterator iter;
168 TS_ASSERT_EQUALS(iter, my_set.end());
169 iTestPassingMptFunctorTypes(my_set);
175 in = xms::ptTruncate(in);
176 TS_ASSERT_DELTA(in.
x, 1.0, 0.001);
177 TS_ASSERT_DELTA(in.
y, -1.0, 0.001);
183 in = xms::ptTruncate(in);
184 TS_ASSERT_DELTA(in.
x, 1.0, 0.001);
185 TS_ASSERT_DELTA(in.
y, -1.0, 0.001);
186 TS_ASSERT_DELTA(in.
z, 4.0, 0.001);
less than Pt3 comparing in 2D, or, only x and y
void TestIt()
test functors
std::set< xms::Pt3d, xms::ltPt3d > SET_WITH_LTPT3D
meant for testing only