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