Lines Matching +full:use +full:- +full:cross
1 #if 0 // Disabled until updated to use current API.
3 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
11 {{-20, -24}, {-24, -20}}};
16 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
18 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
20 SkScalar cross = vectors[i][0].cross(vectors[i][1]);
21 str.printf("cross = %g", cross);
22 paint.setColor(cross >= 0 ? SK_ColorRED : SK_ColorBLUE);
23 canvas->drawString(str, center[i].fX, center[i].fY, paint);
27 #endif // Disabled until updated to use current API.