Lines Matching defs:direction

289     SkPathFirstDirection direction = SkPathPriv::ComputeFirstDirection(*this);
290 if (direction == SkPathFirstDirection::kUnknown) {
328 if (!check_edge_against_rect(quadPts[0], quadPts[2], rect, direction)) {
331 if (!check_edge_against_rect(quadPts[2], quadPts[4], rect, direction)) {
335 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, direction)) {
345 return check_edge_against_rect(prevPt, firstPt, rect, direction);
402 Determines if path is a rect by keeping track of changes in direction
405 The direction is computed such that:
417 There's more than four changes of direction.
419 The line reverses direction.
432 The direction takes advantage of the corners found since opposite sides
451 bool SkPath::isRect(SkRect* rect, bool* isClosed, SkPathDirection* direction) const {
455 return SkPathPriv::IsRectContour(*this, false, &currVerb, &pts, isClosed, direction, rect);
2123 /** The direction returned is only valid if the path is determined convex */
2190 // we have to check the direction change along the first vector in case it is concave.
2232 // allow path to reverse direction twice
2234 // - 1st reversal: direction change formed by line (0,0 1,1), line (1,1 0,0)
2235 // - 2nd reversal: direction change formed by line (1,1 0,0), line (0,0 1,1)
2241 SK_ABORT("Use of invalid direction change flag");
2248 SkVector fFirstVec {0, 0}; // The direction leaving fFirstPt to the next vertex
2251 SkVector fLastVec {0, 0}; // The direction that brought the path to fLastPt
2299 // Check to see if path changes direction more than three times as quick concave test
2575 // SkScalar, since we just want - or + to signal the direction.
2597 // x-direction. We really should continue to walk away from the degeneracy until
3130 SkPathDirection* direction, unsigned* start) {
3203 *direction = vec03IsVertical ? SkPathDirection::kCW : SkPathDirection::kCCW;
3208 *direction = vec03IsVertical ? SkPathDirection::kCCW : SkPathDirection::kCW;
3213 *direction = vec03IsVertical ? SkPathDirection::kCCW : SkPathDirection::kCW;
3218 *direction = vec03IsVertical ? SkPathDirection::kCW : SkPathDirection::kCCW;
3502 const SkPoint** ptsPtr, bool* isClosed, SkPathDirection* direction,
3582 return false; // too many direction changes
3634 if (direction) {
3635 *direction = directions[0] == ((directions[1] + 1) & 3) ?