33 inline a_2dh(
double x,
double y,
double t = 1) :
a_mat_c(3) {(*this)(0)=
x; (*this)(1)=
y; (*this)(2)=t;};
36 static const std::string
help();
37 inline void set(
double x,
double y,
double t = 1) {(*this)(0)=
x; (*this)(1)=
y; (*this)(2)=t;};
38 inline void set(
const a_point2& p) {(*this)(0)=p.
x(); (*this)(1)=p.
y(); (*this)(2)=1.;};
40 inline void X(
double v) {(*this)(0) = v;}
41 inline void Y(
double v) {(*this)(1) = v;}
42 inline void T(
double v) {(*this)(2) = v;}
43 inline double X()
const {
return (*
this)(0);}
44 inline double Y()
const {
return (*
this)(1);}
45 inline double T()
const {
return (*
this)(2);}
46 inline double x()
const {
return (*
this)(0)/(*
this)(2);}
47 inline double y()
const {
return (*
this)(1)/(*
this)(2);}
an homogeneous 2d matrix class
void set(double x, double y, double t=1)
friend std::istream & operator>>(std::istream &i, a_2dh &m)
a_2dh(double x, double y, double t=1)
static const std::string help()
friend std::ostream & operator<<(std::ostream &o, const a_2dh &m)
void set(const a_point2 &p)