/external/skqp/tests/ |
D | PathMeasureTest.cpp | 115 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/ |
D | PathMeasureTest.cpp | 115 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/ |
D | SkDashPathEffect.cpp | 208 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 …]
|
D | Sk1DPathEffect.cpp | 82 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()
|
D | SkDiscretePathEffect.cpp | 28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() argument 29 SkVector normal = tangent; in Perterb()
|
/external/skia/src/effects/ |
D | SkDashPathEffect.cpp | 208 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 …]
|
D | Sk1DPathEffect.cpp | 82 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()
|
D | SkDiscretePathEffect.cpp | 28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() argument 29 SkVector normal = tangent; in Perterb()
|
/external/skia/src/core/ |
D | SkContourMeasure.cpp | 402 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 …]
|
D | SkScan_Hairline.cpp | 461 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 …]
|
D | SkPathMeasure.cpp | 30 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* position, SkVector* tangent) { in getPosTan() argument 31 return fContour && fContour->getPosTan(distance, position, tangent); in getPosTan()
|
D | SkGeometry.cpp | 111 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 …]
|
D | SkStroke.cpp | 213 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/ |
D | SkPathMeasure.cpp | 459 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 …]
|
D | SkScan_Hairline.cpp | 461 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 …]
|
D | SkGeometry.cpp | 111 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 …]
|
D | SkStroke.cpp | 213 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/ |
D | FuzzPathMeasure.cpp | 28 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/ |
D | FuzzPathMeasure.cpp | 28 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/ |
D | strokes.cpp | 249 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/ |
D | strokes.cpp | 249 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/ |
D | switch.frag.out | 91 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)
|
D | hlsl.intrinsics.vert.out | 30 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/ |
D | api_def_Tanh.pbtxt | 3 summary: "Computes hyperbolic tangent of `x` element-wise."
|
D | api_def_Atanh.pbtxt | 3 summary: "Computes inverse hyperbolic tangent of x element-wise."
|