Lines Matching defs:offset
63 // Compute difference vector to offset p0-p1 'offset' units in direction specified by 'side'
64 bool compute_offset_vector(const SkPoint& p0, const SkPoint& p1, SkScalar offset, int side,
69 if (!perp.setLength(offset*side)) {
472 bool SkComputeRadialSteps(const SkVector& v1, const SkVector& v2, SkScalar offset,
486 SkScalar floatSteps = SkScalarAbs(offset*theta*kRecipPixelsPerArcSegment);
497 // Our offset may be so large that we end up with a tiny dTheta, in which case we
1156 static bool is_reflex_vertex(const SkPoint* inputPolygonVerts, int winding, SkScalar offset,
1162 return (side*winding*offset < 0);
1166 const SkRect& bounds, SkScalar offset,
1177 if (!SkScalarIsFinite(offset)) {
1182 if (offset > std::min(SkTAbs(SK_ScalarHalf*bounds.width()),
1188 if (SkScalarNearlyZero(offset)) {
1215 offset, winding, &normals[currIndex])) {
1220 if (is_reflex_vertex(inputPolygonVerts, winding, offset,
1224 if (!SkComputeRadialSteps(normals[prevIndex], normals[currIndex], offset,
1234 if (is_reflex_vertex(inputPolygonVerts, winding, offset, inputPolygonSize-1, 0, 1)) {
1237 if (!SkComputeRadialSteps(normals[inputPolygonSize-1], normals[0], offset,
1251 // build initial offset edge list
1259 if (is_reflex_vertex(inputPolygonVerts, winding, offset,
1264 if (!SkComputeRadialSteps(prevNormal, normals[currIndex], offset,
1433 // check winding of offset polygon (it should be same as the original polygon)