skia2/experimental/Intersection/QuadraticParameterization.h
skia.committer@gmail.com 055c7c299c Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5561 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-09-15 02:01:41 +00:00

28 lines
621 B
C++

#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];
};