Home
last modified time | relevance | path

Searched refs:tangent (Results 1 – 10 of 10) sorted by relevance

/external/skia/src/core/
DSkPathMeasure.cpp248 int segType, SkScalar t, SkPoint* pos, SkVector* tangent) { in compute_pos_tan() argument
262 if (tangent) { in compute_pos_tan()
263 tangent->setNormalize(endp->fX - pts[0].fX, endp->fY - pts[0].fY); in compute_pos_tan()
268 SkEvalQuadAt(pts, t, pos, tangent); in compute_pos_tan()
269 if (tangent) { in compute_pos_tan()
270 tangent->normalize(); in compute_pos_tan()
274 SkEvalCubicAt(pts, t, pos, tangent, NULL); in compute_pos_tan()
275 if (tangent) { in compute_pos_tan()
276 tangent->normalize(); in compute_pos_tan()
438 SkVector* tangent) { in getPosTan() argument
[all …]
DSkGeometry.cpp178 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) in SkEvalQuadAt() argument
185 if (tangent) in SkEvalQuadAt()
186 tangent->set(eval_quad_derivative(&src[0].fX, t), in SkEvalQuadAt()
190 void SkEvalQuadAtHalf(const SkPoint src[3], SkPoint* pt, SkVector* tangent) in SkEvalQuadAtHalf() argument
202 if (tangent) in SkEvalQuadAtHalf()
203 tangent->set(eval_quad_derivative_at_half(&src[0].fX), in SkEvalQuadAtHalf()
446 void SkEvalCubicAt(const SkPoint src[4], SkScalar t, SkPoint* loc, SkVector* tangent, SkVector* cur… in SkEvalCubicAt() argument
453 if (tangent) in SkEvalCubicAt()
454 tangent->set(eval_cubic_derivative(&src[0].fX, t), in SkEvalCubicAt()
DSkDraw.cpp1746 SkVector tangent; in morphpoints() local
1752 meas.getPosTan(sx, &pos, &tangent); in morphpoints()
1764 dst[i].set(pos.fX - SkScalarMul(tangent.fY, sy), in morphpoints()
1765 pos.fY + SkScalarMul(tangent.fX, sy)); in morphpoints()
/external/skia/src/effects/
DSk1DPathEffect.cpp95 SkVector tangent; in morphpoints() local
100 meas.getPosTan(dist + sx, &pos, &tangent); in morphpoints()
106 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
DSkDiscretePathEffect.cpp23 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) in Perterb() argument
25 SkVector normal = tangent; in Perterb()
/external/skia/include/core/
DSkGeometry.h33 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = NULL);
34 void SkEvalQuadAtHalf(const SkPoint src[3], SkPoint* pt, SkVector* tangent = NULL);
DSkPathMeasure.h51 bool getPosTan(SkScalar distance, SkPoint* position, SkVector* tangent);
/external/webkit/WebCore/platform/graphics/qt/
DPathQt.cpp193 float tangent = radius / tan(acos(cos_phi) / 2); in addArcTo() local
194 float factor_p1p0 = tangent / p1p0_length; in addArcTo()
217 float factor_p1p2 = tangent / p1p2_length; in addArcTo()
/external/webkit/WebCore/platform/graphics/cairo/
DPathCairo.cpp196 float tangent = radius / tan(acos(cos_phi) / 2); in addArcTo() local
197 float factor_p1p0 = tangent / p1p0_length; in addArcTo()
220 float factor_p1p2 = tangent / p1p2_length; in addArcTo()
/external/webkit/WebCore/
DChangeLog-2007-10-1451485 had a bug in the tangent slope calculation.