19 const double pi = 3.14159265358979;
28 o <<
"direction vector : " << a << std::endl;
29 o <<
"distances" << std::endl;
30 o <<
"d " << this->norm() << std::endl;
31 o <<
"dx " << this->x() << std::endl;
32 o <<
"dy " << this->y() << std::endl;
33 o <<
"dz " << this->z() << std::endl;
34 o <<
"orientation" << std::endl;
35 o <<
"cx " <<
r2d*acos(a.x()) <<
" deg = " <<
r2g*acos(a.x()) <<
" gon " << std::endl;
36 o <<
"cy " <<
r2d*acos(a.y()) <<
" deg = " <<
r2g*acos(a.y()) <<
" gon " << std::endl;
37 o <<
"cz " <<
r2d*acos(a.z()) <<
" deg = " <<
r2g*acos(a.z()) <<
" gon" << std::endl;
41 o <<
"azimuth " << 360.-
r2d*acos(b.x()) <<
" deg = " << 400.-
r2g*acos(b.x()) <<
" gon" << std::endl;
43 o <<
"azimuth " <<
r2d*acos(b.x()) <<
" deg = " <<
r2g*acos(b.x()) <<
" gon" << std::endl;
44 o <<
"elevation " << 90.-
r2d*acos(a.z()) <<
" deg = " << 100.-
r2g*acos(a.z()) <<
" gon" << std::endl;
51 o <<
"direction vector : " << a << std::endl;
52 bool state0 = o.use_user_unit();
53 o <<
"distances" << std::endl;
54 o <<
"d " << this->norm() << std::endl;
55 o <<
"dx " << this->x() << std::endl;
56 o <<
"dy " << this->y() << std::endl;
57 o <<
"dz " << this->z() << std::endl;
59 o <<
"orientation" << std::endl;
60 o <<
"cx " <<
r2d*acos(a.x()) <<
" deg = " <<
r2g*acos(a.x()) <<
" gon " << std::endl;
61 o <<
"cy " <<
r2d*acos(a.y()) <<
" deg = " <<
r2g*acos(a.y()) <<
" gon " << std::endl;
62 o <<
"cz " <<
r2d*acos(a.z()) <<
" deg = " <<
r2g*acos(a.z()) <<
" gon" << std::endl;
66 o <<
"azimuth " << 360.-
r2d*acos(b.x()) <<
" deg = " << 400.-
r2g*acos(b.x()) <<
" gon" << std::endl;
68 o <<
"azimuth " <<
r2d*acos(b.x()) <<
" deg = " <<
r2g*acos(b.x()) <<
" gon" << std::endl;
69 o <<
"elevation " << 90.-
r2d*acos(a.z()) <<
" deg = " << 100.-
r2g*acos(a.z()) <<
" gon" << std::endl;
70 if (state0) o.use_user_unit(1);
void print(std::ostream &o)