Lines Matching refs:ThreeD

198 ThreeD<numtyp>::ThreeD(numtyp cx, numtyp cy, numtyp cz) {  in ThreeD()  function in ThreeD
204 ThreeD<numtyp>::ThreeD(numtyp in) { in ThreeD() function in ThreeD
210 ThreeD<numtyp>::ThreeD(const ThreeD<unsigned>& in) { in ThreeD() function in ThreeD
216 ThreeD<numtyp>::ThreeD(const ThreeD<int>& in) { in ThreeD() function in ThreeD
222 ThreeD<numtyp>::ThreeD(const ThreeD<float>& in) { in ThreeD() function in ThreeD
228 ThreeD<numtyp>::ThreeD(const ThreeD<double>& in) { in ThreeD() function in ThreeD
234 ThreeD<numtyp>::ThreeD(const TwoD<float>& in) { in ThreeD() function in ThreeD
240 ThreeD<numtyp>::ThreeD(const Ball<double>& ball) { in ThreeD() function in ThreeD
249 ThreeD<numtyp>::ThreeD(const Ball<float>& ball) { in ThreeD() function in ThreeD
257 ThreeD<numtyp>::ThreeD() { in ThreeD() function in ThreeD
261 void ThreeD<numtyp>::operator = (const ThreeD &two) { in operator =()
269 bool ThreeD<numtyp>::operator == (const ThreeD<numtyp> &two) const { in operator ==()
276 bool ThreeD<numtyp>::operator != (const ThreeD<numtyp> &two) const { in operator !=()
283 ThreeD<numtyp> ThreeD<numtyp>::operator + (const ThreeD<numtyp> &two) const { in operator +()
284 return (ThreeD<numtyp>(x+two.x,y+two.y,z+two.z)); in operator +()
288 ThreeD<numtyp> ThreeD<numtyp>::operator + (const numtyp &two) const { in operator +()
289 return (ThreeD<numtyp>(x+two,y+two,z+two)); in operator +()
293 void ThreeD<numtyp>::operator += (const numtyp &two) { in operator +=()
298 void ThreeD<numtyp>::operator += (const ThreeD &two) { in operator +=()
303 void ThreeD<numtyp>::operator -= (const ThreeD &two) { in operator -=()
308 ThreeD<numtyp> ThreeD<numtyp>::operator - (const ThreeD<numtyp> &two) const { in operator -()
309 return (ThreeD<numtyp>(x-two.x,y-two.y,z-two.z)); in operator -()
313 ThreeD<numtyp> ThreeD<numtyp>::operator - (const numtyp &two) const { in operator -()
314 return (ThreeD<numtyp>(x-two,y-two,z-two)); in operator -()
318 void ThreeD<numtyp>::operator -= (const numtyp &two) { in operator -=()
323 ThreeD<numtyp> ThreeD<numtyp>::operator * (const numtyp &two) const { in operator *()
324 return (ThreeD<numtyp>(x*two,y*two,z*two)); in operator *()
328 ThreeD<numtyp> ThreeD<numtyp>::operator * (const ThreeD<numtyp> &two) const { in operator *()
329 return ThreeD<numtyp>(x*two.x,y*two.y,z*two.z); in operator *()
333 ThreeD<numtyp> ThreeD<numtyp>::operator / (const ThreeD<numtyp> &two) const { in operator /()
334 return ThreeD<numtyp>(x/two.x,y/two.y,z/two.z); in operator /()
339 numtyp ThreeD<numtyp>::dot(const ThreeD<numtyp> &two) const { in dot()
345 void ThreeD<numtyp>::to_array(numtyp *array) { in to_array()
355 void ThreeD<numtyp>::from_array(numtyp *array) { in from_array()
366 ThreeD<numtyp> ThreeD<numtyp>::cross(const ThreeD<numtyp> &two) const { in cross()
367 return ThreeD<numtyp> (y*two.z-z*two.y, z*two.x-x*two.z, x*two.y-y*two.x); in cross()
372 numtyp ThreeD<numtyp>::angle(const ThreeD<numtyp> &two) const { in angle()
381 ThreeD<numtyp> ThreeD<numtyp>::perpendicular() { in perpendicular()
382 ThreeD<numtyp> two=*this; in perpendicular()
391 ThreeD<numtyp> ThreeD<numtyp>::rotatey(double t) const { in rotatey()
392 ThreeD<numtyp> two; in rotatey()
402 ThreeD<numtyp> ThreeD<numtyp>::rotatez(double t) const { in rotatez()
403 ThreeD<numtyp> two; in rotatez()
413 ThreeD<numtyp> ThreeD<numtyp>::operator / (const numtyp &two) const { in operator /()
414 return (ThreeD<numtyp>(x/two,y/two,z/two)); in operator /()
418 void ThreeD<numtyp>::operator /= (const numtyp &two) { in operator /=()
424 numtyp ThreeD<numtyp>::hypot() const { in hypot()
430 numtyp ThreeD<numtyp>::norm() const { in norm()
437 numtyp ThreeD<numtyp>::norm2() const { in norm2()
442 numtyp ThreeD<numtyp>::dist2(const ThreeD<numtyp> &two) { in dist2()
443 ThreeD diff=*this-two; in dist2()
449 ThreeD<numtyp> ThreeD<numtyp>::unit() { in unit()
450 ThreeD<numtyp> unit=*this; in unit()
457 unsigned ThreeD<numtyp>::dimensionality() { in dimensionality()
462 c2DPt ThreeD<numtyp>::projz() { in projz()
467 ostream & operator<< (ostream &out, const ThreeD<numtyp> &t) { in operator <<()
473 istream & operator>>(istream &in, ThreeD<numtyp> &t) { in operator >>()
479 ThreeD<numtyp> operator+ (const numtyp one, const ThreeD<numtyp> &two) { in operator +()
480 return ThreeD<numtyp>(one+two.x,one+two.y,one+two.z); in operator +()
484 ThreeD<numtyp> operator- (const numtyp one, const ThreeD<numtyp> &two) { in operator -()
485 return ThreeD<numtyp>(one-two.x,one-two.y,one-two.z); in operator -()
489 ThreeD<numtyp> operator* (const numtyp one, const ThreeD<numtyp> &two) { in operator *()
490 return ThreeD<numtyp>(one*two.x,one*two.y,one*two.z); in operator *()
494 ThreeD<numtyp> operator/ (const numtyp one, const ThreeD<numtyp> &two) { in operator /()
495 return ThreeD<numtyp>(one/two.x,one/two.y,one/two.z); in operator /()
500 void ThreeD<numtyp>::max(ThreeD<numtyp> &one, ThreeD<numtyp> &two) { in max()
508 void ThreeD<numtyp>::min(ThreeD<numtyp> &one, ThreeD<numtyp> &two) { in min()
517 numtyp ThreeD<numtyp>::array_index(vector<unsigned> &s_size) { in array_index()
523 bool ThreeD<unsigned>::increment_index(ThreeD &minp,ThreeD &maxp) { in increment_index()
540 bool ThreeD<numtyp>::check_bounds(numtyp minp,numtyp maxp) { in check_bounds()
1024 template class ThreeD<int>;
1025 template class ThreeD<float>; variable
1026 template class ThreeD<double>; variable
1027 template class ThreeD<unsigned>; variable
1028 template ostream & operator<< <float>(ostream &out, const ThreeD<float> &t);
1029 template istream & operator>> <float>(istream &in, ThreeD<float> &t);
1030 template ostream & operator<< <double>(ostream &out, const ThreeD<double> &t);
1031 template istream & operator>> <double>(istream &in, ThreeD<double> &t);
1032 template ostream & operator<< <unsigned>(ostream &out, const ThreeD<unsigned> &t);
1033 template istream & operator>> <unsigned>(istream &in, ThreeD<unsigned> &t);
1034 template ThreeD<unsigned> operator+ (const unsigned one,
1035 const ThreeD<unsigned> &two);
1036 template ThreeD<double> operator+(const double one, const ThreeD<double> &two);
1037 template ThreeD<unsigned> operator- (const unsigned one,
1038 const ThreeD<unsigned> &two);
1039 template ThreeD<double> operator-(const double one, const ThreeD<double> &two);
1040 template ThreeD<unsigned> operator* (const unsigned one,
1041 const ThreeD<unsigned> &two);
1042 template ThreeD<double> operator*(const double one, const ThreeD<double> &two);
1043 template ThreeD<unsigned> operator/ (const unsigned one,
1044 const ThreeD<unsigned> &two);
1045 template ThreeD<double> operator/(const double one, const ThreeD<double> &two);