Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: experimental/Intersection/QuadraticParameterization_TestUtility.cpp

Issue 867213004: remove prototype pathops code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // included by QuadraticParameterization.cpp
2 // accesses internal functions to validate parameterized coefficients
3
4 #include "Parameterization_Test.h"
5
6 bool point_on_parameterized_curve(const Quadratic& quad, const _Point& point) {
7 QuadImplicitForm q(quad);
8 double xx = q.x2() * point.x * point.x;
9 double xy = q.xy() * point.x * point.y;
10 double yy = q.y2() * point.y * point.y;
11 double x = q.x() * point.x;
12 double y = q.y() * point.y;
13 double c = q.c();
14 double sum = xx + xy + yy + x + y + c;
15 return approximately_zero(sum);
16 }
OLDNEW
« no previous file with comments | « experimental/Intersection/QuadraticParameterization_Test.cpp ('k') | experimental/Intersection/QuadraticReduceOrder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698