22 o <<
"*****" << std::endl;
23 o <<
"a_3dh" << std::endl;
24 o <<
"****" << std::endl;
25 o <<
"This is a 3 dimensional homogeneous point class" << std::endl;
26 o <<
"Commands:" << std::endl;
27 o <<
"--------" << std::endl;
28 o <<
"X: set or get the homogeneous coordinate" << std::endl;
29 o <<
"Y: set or get the homogeneous coordinate" << std::endl;
30 o <<
"Z: set or get the homogeneous coordinate" << std::endl;
31 o <<
"T: set or get the homogeneous coordinate" << std::endl;
32 o <<
"x: get the coordinate (no check)" << std::endl;
33 o <<
"y: get the coordinate (no check)" << std::endl;
34 o <<
"z: get the coordinate (no check)" << std::endl;
35 o <<
"set x y z (t): set the coordinates" << std::endl;
36 o <<
"set a_point: set the coordinates" << std::endl;
37 o <<
"point: get a_point representation (no check)" << std::endl;
45 for (
int i = 0; i<4; i++)
63 o << m.
x() <<
" " << m.
y() <<
" " << m.
z() << std::endl;
std::ostream & operator<<(std::ostream &o, const a_3dh &m)
std::istream & operator>>(std::istream &i, a_3dh &m)
an homogeneous 3d matrix class
static const std::string help()