| OLD | NEW |
| (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 } | |
| OLD | NEW |