1 #include "DataTypes.h" 2 3 class QuadImplicitForm { 4 public: 5 QuadImplicitForm(const Quadratic& q); 6 bool implicit_match(const QuadImplicitForm& two) const; 7 8 double x2() const { return p[xx_coeff]; } 9 double xy() const { return p[xy_coeff]; } 10 double y2() const { return p[yy_coeff]; } 11 double x() const { return p[x_coeff]; } 12 double y() const { return p[y_coeff]; } 13 double c() const { return p[c_coeff]; } 14 15 private: 16 enum Coeffs { 17 xx_coeff, 18 xy_coeff, 19 yy_coeff, 20 x_coeff, 21 y_coeff, 22 c_coeff, 23 coeff_count 24 }; 25 26 double p[coeff_count]; 27 }; 28