102 if (0 == expectedLen) {
116 for (
int index = 0; index <
testCount; ++index) {
121 pt3.
set(testVal, 0, 0);
131 static const struct {
137 { 0.0f, 0.0f, 0.0f, 0.0f },
139 { 1.0e-37f, 1.0e-37f, 1.0e-37f, 0.0f },
140 { 3.4e38f, 0.0f, 0.0f, 3.4e38f }
static const struct @223 gRec[]
static const size_t testCount
static void test_ops(skiatest::Reporter *reporter)
static void test_dot(skiatest::Reporter *reporter)
static void test_eq_ops(skiatest::Reporter *reporter)
static void test_length(skiatest::Reporter *reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen)
static void test_normalize(skiatest::Reporter *reporter, SkScalar x, SkScalar y, SkScalar z, SkScalar expectedLen)
DEF_TEST(Point3, reporter)
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define SK_ScalarRoot2Over2
#define REPORTER_ASSERT(r, cond,...)
float nextRangeF(float min, float max)
void setSeed(uint32_t seed)
EMSCRIPTEN_KEEPALIVE void empty()
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
SINT T dot(const Vec< N, T > &a, const Vec< N, T > &b)
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)
static SkScalar Length(SkScalar x, SkScalar y, SkScalar z)
SkPoint3 makeScale(SkScalar scale) const
SkScalar dot(const SkPoint3 &vec) const
void set(SkScalar x, SkScalar y, SkScalar z)