7 o <<
"*****" << std::endl;
8 o <<
"a_2dh" << std::endl;
9 o <<
"****" << std::endl;
10 o <<
"This is a 2 dimensional homogeneous point class" << std::endl;
11 o <<
"Commands:" << std::endl;
12 o <<
"--------" << std::endl;
13 o <<
"X: set or get the homogeneous coordinate" << std::endl;
14 o <<
"Y: set or get the homogeneous coordinate" << std::endl;
15 o <<
"T: set or get the homogeneous coordinate" << std::endl;
16 o <<
"x: get the coordinate (no check)" << std::endl;
17 o <<
"y: get the coordinate (no check)" << std::endl;
18 o <<
"set x y (t): set the coordinates" << std::endl;
19 o <<
"set a_point2: set the coordinates" << std::endl;
20 o <<
"point2: get a_point2 representation (no check)" << std::endl;
28 for (
int i = 0; i<3; i++)
45 o << m.
x() <<
" " << m.
y() << std::endl;
std::istream & operator>>(std::istream &i, a_2dh &m)
std::ostream & operator<<(std::ostream &o, const a_2dh &m)
an homogeneous 2d matrix class
static const std::string help()