Lines Matching refs:v1
25 SkDVector v1 = tests[index + 1] - tests[index];
26 SkASSERT(ValidVector(v1));
29 v1 += v2;
30 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0);
33 v1 = tests[index + 1] - tests[index];
34 v1 /= 2;
35 v1 *= 2;
36 v1 -= tests[index + 1] - tests[index];
37 REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0);
38 SkVector sv = v1.asSkVector();
40 v1 = tests[index + 1] - tests[index];
41 double lenSq = v1.lengthSquared();
42 double v1Dot = v1.dot(v1);
44 REPORTER_ASSERT(reporter, approximately_equal(sqrt(lenSq), v1.length()));
45 double v1Cross = v1.cross(v1);