Home
last modified time | relevance | path

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

123

/external/skqp/tests/
DPathMeasureTest.cpp115 SkVector tangent; in DEF_TEST() local
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); in DEF_TEST()
123 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST()
141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
147 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1); in DEF_TEST()
148 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST()
149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent)); in DEF_TEST()
154 REPORTER_ASSERT(reporter, tangent.fX == 0); in DEF_TEST()
155 REPORTER_ASSERT(reporter, tangent.fY == SK_Scalar1); in DEF_TEST()
[all …]
/external/skia/tests/
DPathMeasureTest.cpp115 SkVector tangent; in DEF_TEST() local
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); in DEF_TEST()
123 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST()
141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST()
147 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1); in DEF_TEST()
148 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST()
149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent)); in DEF_TEST()
154 REPORTER_ASSERT(reporter, tangent.fX == 0); in DEF_TEST()
155 REPORTER_ASSERT(reporter, tangent.fY == SK_Scalar1); in DEF_TEST()
[all …]
/external/skqp/src/effects/
DSkDashPathEffect.cpp208 SkVector tangent = pts[1] - pts[0]; in onAsPoints() local
209 if (tangent.isZero()) { in onAsPoints()
213 tangent.scale(SkScalarInvert(length)); in onAsPoints()
217 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || in onAsPoints()
218 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { in onAsPoints()
220 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || in onAsPoints()
221 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { in onAsPoints()
288 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
289 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
321 SkScalar x = pts[0].fX + tangent.fX * distance; in onAsPoints()
[all …]
DSk1DPathEffect.cpp82 SkVector tangent; in morphpoints() local
87 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints()
95 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
DSkDiscretePathEffect.cpp28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() argument
29 SkVector normal = tangent; in Perterb()
/external/skia/src/effects/
DSkDashPathEffect.cpp208 SkVector tangent = pts[1] - pts[0]; in onAsPoints() local
209 if (tangent.isZero()) { in onAsPoints()
213 tangent.scale(SkScalarInvert(length)); in onAsPoints()
217 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || in onAsPoints()
218 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { in onAsPoints()
220 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || in onAsPoints()
221 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { in onAsPoints()
288 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
289 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in onAsPoints()
321 SkScalar x = pts[0].fX + tangent.fX * distance; in onAsPoints()
[all …]
DSk1DPathEffect.cpp82 SkVector tangent; in morphpoints() local
87 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints()
95 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
DSkDiscretePathEffect.cpp28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() argument
29 SkVector normal = tangent; in Perterb()
/external/skia/src/core/
DSkContourMeasure.cpp402 SkScalar t, SkPoint* pos, SkVector* tangent) { in compute_pos_tan() argument
409 if (tangent) { in compute_pos_tan()
410 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); in compute_pos_tan()
414 SkEvalQuadAt(pts, t, pos, tangent); in compute_pos_tan()
415 if (tangent) { in compute_pos_tan()
416 tangent->normalize(); in compute_pos_tan()
420 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); in compute_pos_tan()
421 if (tangent) { in compute_pos_tan()
422 tangent->normalize(); in compute_pos_tan()
426 SkEvalCubicAt(pts, t, pos, tangent, nullptr); in compute_pos_tan()
[all …]
DSkScan_Hairline.cpp461 SkVector tangent; in extend_pts() local
463 tangent = *first - *++ctrl; in extend_pts()
464 } while (tangent.isZero() && --controls > 0); in extend_pts()
465 if (tangent.isZero()) { in extend_pts()
466 tangent.set(1, 0); in extend_pts()
469 tangent.normalize(); in extend_pts()
472 first->fX += tangent.fX * capOutset; in extend_pts()
473 first->fY += tangent.fY * capOutset; in extend_pts()
482 SkVector tangent; in extend_pts() local
484 tangent = *last - *--ctrl; in extend_pts()
[all …]
DSkPathMeasure.cpp30 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* position, SkVector* tangent) { in getPosTan() argument
31 return fContour && fContour->getPosTan(distance, position, tangent); in getPosTan()
DSkGeometry.cpp111 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt() argument
118 if (tangent) { in SkEvalQuadAt()
119 *tangent = SkEvalQuadTangentAt(src, t); in SkEvalQuadAt()
333 SkVector* tangent, SkVector* curvature) { in SkEvalCubicAt() argument
340 if (tangent) { in SkEvalCubicAt()
346 *tangent = src[2] - src[0]; in SkEvalCubicAt()
348 *tangent = src[3] - src[1]; in SkEvalCubicAt()
350 if (!tangent->fX && !tangent->fY) { in SkEvalCubicAt()
351 *tangent = src[3] - src[0]; in SkEvalCubicAt()
354 *tangent = eval_cubic_derivative(src, t); in SkEvalCubicAt()
[all …]
DSkStroke.cpp213 SkPoint* tangent) const;
218 SkPoint* tangent) const;
226 SkPoint* tangent) const;
237 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const;
767 SkPoint* tangent) const { in setRayPts()
774 if (tangent) { in setRayPts()
775 tangent->fX = onPt->fX + dxy->fX; in setRayPts()
776 tangent->fY = onPt->fY + dxy->fY; in setRayPts()
783 SkPoint* tangent) const { in conicPerpRay()
789 this->setRayPts(*tPt, &dxy, onPt, tangent); in conicPerpRay()
[all …]
/external/skqp/src/core/
DSkPathMeasure.cpp459 SkScalar t, SkPoint* pos, SkVector* tangent) { in compute_pos_tan() argument
466 if (tangent) { in compute_pos_tan()
467 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); in compute_pos_tan()
471 SkEvalQuadAt(pts, t, pos, tangent); in compute_pos_tan()
472 if (tangent) { in compute_pos_tan()
473 tangent->normalize(); in compute_pos_tan()
477 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); in compute_pos_tan()
478 if (tangent) { in compute_pos_tan()
479 tangent->normalize(); in compute_pos_tan()
483 SkEvalCubicAt(pts, t, pos, tangent, nullptr); in compute_pos_tan()
[all …]
DSkScan_Hairline.cpp461 SkVector tangent; in extend_pts() local
463 tangent = *first - *++ctrl; in extend_pts()
464 } while (tangent.isZero() && --controls > 0); in extend_pts()
465 if (tangent.isZero()) { in extend_pts()
466 tangent.set(1, 0); in extend_pts()
469 tangent.normalize(); in extend_pts()
472 first->fX += tangent.fX * capOutset; in extend_pts()
473 first->fY += tangent.fY * capOutset; in extend_pts()
482 SkVector tangent; in extend_pts() local
484 tangent = *last - *--ctrl; in extend_pts()
[all …]
DSkGeometry.cpp111 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt() argument
118 if (tangent) { in SkEvalQuadAt()
119 *tangent = SkEvalQuadTangentAt(src, t); in SkEvalQuadAt()
333 SkVector* tangent, SkVector* curvature) { in SkEvalCubicAt() argument
340 if (tangent) { in SkEvalCubicAt()
346 *tangent = src[2] - src[0]; in SkEvalCubicAt()
348 *tangent = src[3] - src[1]; in SkEvalCubicAt()
350 if (!tangent->fX && !tangent->fY) { in SkEvalCubicAt()
351 *tangent = src[3] - src[0]; in SkEvalCubicAt()
354 *tangent = eval_cubic_derivative(src, t); in SkEvalCubicAt()
[all …]
DSkStroke.cpp213 SkPoint* tangent) const;
218 SkPoint* tangent) const;
226 SkPoint* tangent) const;
237 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const;
766 SkPoint* tangent) const { in setRayPts()
778 if (tangent) { in setRayPts()
779 tangent->fX = onPt->fX + dxy->fX; in setRayPts()
780 tangent->fY = onPt->fY + dxy->fY; in setRayPts()
787 SkPoint* tangent) const { in conicPerpRay()
793 this->setRayPts(*tPt, &dxy, onPt, tangent); in conicPerpRay()
[all …]
/external/skqp/fuzz/
DFuzzPathMeasure.cpp28 SkVector tangent; in DEF_FUZZ() local
29 ignoreResult(measure.getPosTan(distance[0], &position, &tangent)); in DEF_FUZZ()
33 ignoreResult(measure.getPosTan(distance[3], &position, &tangent)); in DEF_FUZZ()
/external/skia/fuzz/
DFuzzPathMeasure.cpp28 SkVector tangent; in DEF_FUZZ() local
29 ignoreResult(measure.getPosTan(distance[0], &position, &tangent)); in DEF_FUZZ()
33 ignoreResult(measure.getPosTan(distance[3], &position, &tangent)); in DEF_FUZZ()
/external/skia/gm/
Dstrokes.cpp249 SkVector tangent = pts[1] - pts[2]; variable
250 tangent.normalize();
254 pts2[0].fX += tangent.fX * capOutset;
255 pts2[0].fY += tangent.fY * capOutset;
256 pts2[1].fX += tangent.fX * capOutset;
257 pts2[1].fY += tangent.fY * capOutset;
258 pts2[2].fX += -tangent.fX * capOutset;
259 pts2[2].fY += -tangent.fY * capOutset;
/external/skqp/gm/
Dstrokes.cpp249 SkVector tangent = pts[1] - pts[2]; variable
250 tangent.normalize();
254 pts2[0].fX += tangent.fX * capOutset;
255 pts2[0].fY += tangent.fY * capOutset;
256 pts2[1].fX += tangent.fX * capOutset;
257 pts2[1].fY += tangent.fY * capOutset;
258 pts2[2].fX += -tangent.fX * capOutset;
259 pts2[2].fY += -tangent.fY * capOutset;
/external/deqp-deps/glslang/Test/baseResults/
Dswitch.frag.out91 0:44 tangent ( global highp float)
143 0:62 tangent ( global highp float)
209 0:86 tangent ( global highp float)
274 0:113 tangent ( global highp float)
427 0:44 tangent ( global highp float)
479 0:62 tangent ( global highp float)
545 0:86 tangent ( global highp float)
610 0:113 tangent ( global highp float)
Dhlsl.intrinsics.vert.out30 0:12 arc tangent ( temp float)
32 0:13 arc tangent ( temp float)
135 0:54 tangent ( temp float)
137 0:55 hyp. tangent ( temp float)
179 0:79 arc tangent ( temp 2-component vector of float)
181 0:80 arc tangent ( temp 2-component vector of float)
308 0:128 tangent ( temp 2-component vector of float)
310 0:129 hyp. tangent ( temp 2-component vector of float)
344 0:148 arc tangent ( temp 3-component vector of float)
346 0:149 arc tangent ( temp 3-component vector of float)
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Tanh.pbtxt3 summary: "Computes hyperbolic tangent of `x` element-wise."
Dapi_def_Atanh.pbtxt3 summary: "Computes inverse hyperbolic tangent of x element-wise."

123