24 const triple<T> & oprnd1,
25 const triple<T> & oprnd2
28 return oprnd1.x_ * oprnd2.x_ +
29 oprnd1.y_ * oprnd2.y_ +
30 oprnd1.z_ * oprnd2.z_ ;
41 v1.y_*v2.z_ - v1.z_*v2.y_,
42 v1.z_*v2.x_ - v1.x_*v2.z_,
43 v1.x_*v2.y_ - v1.y_*v2.x_
86 oprnd1.x_ + oprnd2.x_,
87 oprnd1.y_ + oprnd2.y_,
96 const triple<T> & oprnd1,
111 const triple<T> & oprnd2
125 const triple<T> & oprnd1,
126 const triple<T> & oprnd2
130 oprnd1.x_ - oprnd2.x_,
131 oprnd1.y_ - oprnd2.y_,
132 oprnd1.z_ - oprnd2.z_
140 const triple<T> & oprnd1,
155 const triple<T> & oprnd2
169 const triple<T> & oprnd1,
170 const triple<T> & oprnd2
174 oprnd1.x_ * oprnd2.x_,
175 oprnd1.y_ * oprnd2.y_,
176 oprnd1.z_ * oprnd2.z_
184 const triple<T> & oprnd1,
199 const triple<T> & oprnd2
213 const triple<T> & oprnd1,
214 const triple<T> & oprnd2
218 oprnd1.x_ / oprnd2.x_,
219 oprnd1.y_ / oprnd2.y_,
220 oprnd1.z_ / oprnd2.z_
228 const triple<T> & oprnd1,
243 const triple<T> & oprnd2
259 this->x_ = this->x_ + oprnd2.
x_;
260 this->y_ = this->y_ + oprnd2.y_;
261 this->z_ = this->z_ + oprnd2.z_;
270 this->x_ = this->x_ - oprnd2.
x_;
271 this->y_ = this->y_ - oprnd2.y_;
272 this->z_ = this->z_ - oprnd2.z_;
281 this->x_ = this->x_ * oprnd2.
x_;
282 this->y_ = this->y_ * oprnd2.y_;
283 this->z_ = this->z_ * oprnd2.z_;
292 this->x_ = this->x_ / oprnd2.
x_;
293 this->y_ = this->y_ / oprnd2.y_;
294 this->z_ = this->z_ / oprnd2.z_;
302 return triple<T>(-this->x_, -this->y_, -this->z_);
320 return equal(opr1, opr2);
326 const triple<T> &opr1,
327 const triple<T> &opr2
330 if( opr1.x_ < opr2.x_ && opr1.y_ < opr2.y_ && opr1.z_ < opr2.z_)
343 const triple<T> &opr1,
344 const triple<T> &opr2
347 if( opr1.x_ > opr2.x_ && opr1.y_ > opr2.y_ && opr1.z_ > opr2.z_)
360 const triple<T> &opr1,
361 const triple<T> &opr2
364 if( opr1.x_ <= opr2.x_ && opr1.y_ <= opr2.y_ && opr1.z_ <= opr2.z_)
378 const triple<T> &opr1,
379 const triple<T> &opr2
382 if( opr1.x_ >= opr2.x_ && opr1.y_ >= opr2.y_ && opr1.z_ >= opr2.z_)
401 str << token::BEGIN_LIST << ov.x_
402 << token::SPACE << ov.y_
403 << token::SPACE << ov.z_
426 str.readEnd(
"triple<T>");
441 str.readBegin(
"triple<T>");
453 str.readEnd(
"triple<T>");