Lines Matching refs:cross
271 // check the cross product of v with the vec from edgeBegin to each rect corner
1347 double sinh = befored.cross(afterd);
2204 SkScalar cross = SkPoint::CrossProduct(fLastVec, curVec);
2205 if (!SkScalarIsFinite(cross)) {
2208 if (cross == 0) {
2211 return 1 == SkScalarSignAsInt(cross) ? kRight_DirChange : kLeft_DirChange;
2440 // returns cross product of (p1 - p0) and (p2 - p0)
2442 SkScalar cross = SkPoint::CrossProduct(p1 - p0, p2 - p0);
2445 if (0 == cross) {
2455 cross = SkDoubleToScalar((p1x - p0x) * (p2y - p0y) -
2459 return cross;
2519 static SkPathFirstDirection crossToDir(SkScalar cross) {
2520 return cross > 0 ? SkPathFirstDirection::kCW : SkPathFirstDirection::kCCW;
2524 * We loop through all contours, and keep the computed cross-product of the
2529 * its cross product.
2557 SkScalar cross = 0;
2576 cross = minIndex - maxIndex;
2579 // Find a next and prev index to use for the cross-product test,
2595 cross = cross_prod(pts[prev], pts[index], pts[next]);
2599 if (0 == cross && pts[prev].fY == pts[index].fY && pts[next].fY == pts[index].fY) {
2601 cross = pts[index].fX - pts[next].fX;
2605 if (cross) {
2608 ymaxCross = cross;
2899 SkScalar cross = (x1 - x0) * (y - pts[0].fY) - dy * (x - x0);
2901 if (!cross) {
2902 // zero cross means the point is on the line, and since the case where
2909 } else if (SkScalarSignAsInt(cross) == dir) {
3109 if (SkScalarNearlyZero(test.cross(tangent))