31 for (
size_t index = 0; index <
tests_count; ++index) {
53 sqrt(pt.
fX * pt.
fX + pt.
fY * pt.
fY)));
static const size_t tests_count
static const SkDPoint tests[]
bool ValidPoint(const SkDPoint &pt)
bool approximately_equal(double x, double y)
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
double distanceSquared(const SkDPoint &a) const
SkPoint asSkPoint() const
double distance(const SkDPoint &a) const