49 namespace SpatialDomains
80 std::list<CompToElmt>::const_iterator def;
107 std::list<CompToElmt>::const_iterator def;
139 coords[2] = (*this)(2);
141 coords[1] = (*this)(1);
143 coords[0] = (*this)(0);
159 (*this)(0) = a[0] + b[0];
160 (*this)(1) = a[1] + b[1];
161 (*this)(2) = a[2] + b[2];
168 (*this)(0) = a[0] - b[0];
169 (*this)(1) = a[1] - b[1];
170 (*this)(2) = a[2] - b[2];
177 (*this)(0) = a[1]*b[2] - a[2]*b[1];
178 (*this)(1) = a[2]*b[0] - a[0]*b[2];
179 (*this)(2) = a[0]*b[1] - a[1]*b[0];
186 return sqrt((
x()-a.
x())*(
x()-a.
x()) + (
y()-a.
y())*(
y()-a.
y()) + (
z()-a.
z())*(
z()-a.
z()));
192 return (
x()*a.
x() +
y()*a.
y() +
z()*a.
z());
244 ASSERTL0(i == 0,
"Index other than 0 is meaningless.");
282 std::ostringstream errstrm;
283 errstrm <<
"Connected edges do not share a vertex. Edges ";