Lines Matching defs:vectors
193 // test a bunch of vectors. None should be scaled by more than stretch
199 SkVector vectors[1000];
200 for (size_t i = 0; i < SK_ARRAY_COUNT(vectors); ++i) {
201 vectors[i].fX = rand.nextSScalar1();
202 vectors[i].fY = rand.nextSScalar1();
203 if (!vectors[i].normalize()) {
208 mat.mapVectors(vectors, SK_ARRAY_COUNT(vectors));
209 for (size_t i = 0; i < SK_ARRAY_COUNT(vectors); ++i) {
210 SkScalar d = vectors[i].length();
525 // if the matrix is degenerate, the basis vectors should be near-parallel or near-zero