33 for (
size_t index = 0; index <
tests_count - 1; ++index) {
40 v2 -=
static_cast<decltype(
v2)&
>(
v2);
51 double v1Dot = v1.
dot(v1);
54 double v1Cross = v1.
cross(v1);
61 auto assertDoublesEqual = [&](
double left,
double right) {
67 assertDoublesEqual(first.fX, 0.332820);
68 assertDoublesEqual(first.fY, 0.942990);
73 assertDoublesEqual(second.fX, 0.455111);
74 assertDoublesEqual(second.fY, -0.890435);
static const size_t tests_count
DEF_TEST(PathOpsDVector, reporter)
static const SkDPoint tests[]
bool ValidVector(const SkDVector &v)
bool approximately_equal(double x, double y)
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define REPORTER_ASSERT(r, cond,...)
static float max(float r, float g, float b)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
double cross(const SkDVector &a) const
SkVector asSkVector() const
double dot(const SkDVector &a) const
double lengthSquared() const