diff options
Diffstat (limited to 'chromium/third_party/skia/experimental/Intersection/QuadraticParameterization.h')
-rw-r--r-- | chromium/third_party/skia/experimental/Intersection/QuadraticParameterization.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/skia/experimental/Intersection/QuadraticParameterization.h b/chromium/third_party/skia/experimental/Intersection/QuadraticParameterization.h new file mode 100644 index 00000000000..ca7d072208f --- /dev/null +++ b/chromium/third_party/skia/experimental/Intersection/QuadraticParameterization.h @@ -0,0 +1,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]; +}; |