/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/skia/src/effects/ |
D | SkDashPathEffect.cpp | 203 SkVector tangent = pts[1] - pts[0]; in asPoints() local 204 if (tangent.isZero()) { in asPoints() 208 tangent.scale(SkScalarInvert(length)); in asPoints() 212 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || in asPoints() 213 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { in asPoints() 215 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || in asPoints() 216 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { in asPoints() 283 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); in asPoints() 284 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); in asPoints() 316 SkScalar x = pts[0].fX + tangent.fX * distance; in asPoints() [all …]
|
D | Sk1DPathEffect.cpp | 79 SkVector tangent; in morphpoints() local 84 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints() 92 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
|
D | SkDiscretePathEffect.cpp | 27 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { in Perterb() argument 28 SkVector normal = tangent; in Perterb()
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | handed_coordinate_space.inl | 15 detail::tvec3<T, P> const & tangent, argument 20 return dot(cross(normal, tangent), binormal) > T(0); 26 detail::tvec3<T, P> const & tangent, argument 31 return dot(cross(normal, tangent), binormal) < T(0);
|
D | handed_coordinate_space.hpp | 57 detail::tvec3<T, P> const & tangent, 65 detail::tvec3<T, P> const & tangent,
|
/external/skia/src/core/ |
D | SkPathMeasure.cpp | 436 SkScalar t, SkPoint* pos, SkVector* tangent) { in compute_pos_tan() argument 443 if (tangent) { in compute_pos_tan() 444 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); in compute_pos_tan() 448 SkEvalQuadAt(pts, t, pos, tangent); in compute_pos_tan() 449 if (tangent) { in compute_pos_tan() 450 tangent->normalize(); in compute_pos_tan() 454 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); in compute_pos_tan() 455 if (tangent) { in compute_pos_tan() 456 tangent->normalize(); in compute_pos_tan() 460 SkEvalCubicAt(pts, t, pos, tangent, nullptr); in compute_pos_tan() [all …]
|
D | SkScan_Hairline.cpp | 434 SkVector tangent; in extend_pts() local 436 tangent = *first - *++ctrl; in extend_pts() 437 } while (tangent.isZero() && --controls > 0); in extend_pts() 438 if (tangent.isZero()) { in extend_pts() 439 tangent.set(1, 0); in extend_pts() 442 tangent.normalize(); in extend_pts() 445 first->fX += tangent.fX * capOutset; in extend_pts() 446 first->fY += tangent.fY * capOutset; in extend_pts() 454 SkVector tangent; in extend_pts() local 456 tangent = *last - *--ctrl; in extend_pts() [all …]
|
D | SkGeometry.cpp | 101 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { in SkEvalQuadAt() argument 108 if (tangent) { in SkEvalQuadAt() 109 *tangent = SkEvalQuadTangentAt(src, t); in SkEvalQuadAt() 311 SkVector* tangent, SkVector* curvature) { in SkEvalCubicAt() argument 318 if (tangent) { in SkEvalCubicAt() 324 *tangent = src[2] - src[0]; in SkEvalCubicAt() 326 *tangent = src[3] - src[1]; in SkEvalCubicAt() 328 if (!tangent->fX && !tangent->fY) { in SkEvalCubicAt() 329 *tangent = src[3] - src[0]; in SkEvalCubicAt() 332 *tangent = eval_cubic_derivative(src, t); in SkEvalCubicAt() [all …]
|
D | SkStroke.cpp | 207 SkPoint* tangent) const; 212 SkPoint* tangent) const; 220 SkPoint* tangent) const; 231 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const; 760 SkPoint* tangent) const { in setRayPts() 772 if (tangent) { in setRayPts() 773 tangent->fX = onPt->fX + dxy->fX; in setRayPts() 774 tangent->fY = onPt->fY + dxy->fY; in setRayPts() 781 SkPoint* tangent) const { in conicPerpRay() 787 this->setRayPts(*tPt, &dxy, onPt, tangent); in conicPerpRay() [all …]
|
D | SkDevice.cpp | 325 SkVector tangent; in morphpoints() local 331 if (!meas.getPosTan(sx, &pos, &tangent)) { in morphpoints() 333 tangent.set(0, 0); in morphpoints() 346 dst[i].set(pos.fX - tangent.fY * sy, pos.fY + tangent.fX * sy); in morphpoints()
|
D | SkGeometry.h | 41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr); 217 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
|
D | SkPath.cpp | 3079 SkVector tangent; in tangent_cubic() local 3080 SkEvalCubicAt(c, t, nullptr, &tangent, nullptr); in tangent_cubic() 3081 tangents->push(tangent); in tangent_cubic() 3245 const SkVector& tangent = tangents[last]; in contains() local 3246 if (SkScalarNearlyZero(tangent.lengthSqd())) { in contains() 3251 if (SkScalarNearlyZero(test.cross(tangent)) in contains() 3252 && SkScalarSignAsInt(tangent.fX * test.fX) <= 0 in contains() 3253 && SkScalarSignAsInt(tangent.fY * test.fY) <= 0) { in contains()
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | bezier.c | 621 float *tangent) in bezier_start_tangent() argument 623 tangent[0] = bez->x1; in bezier_start_tangent() 624 tangent[1] = bez->y1; in bezier_start_tangent() 625 tangent[2] = bez->x2; in bezier_start_tangent() 626 tangent[3] = bez->y2; in bezier_start_tangent() 628 if (null_line(tangent)) { in bezier_start_tangent() 629 tangent[0] = bez->x1; in bezier_start_tangent() 630 tangent[1] = bez->y1; in bezier_start_tangent() 631 tangent[2] = bez->x3; in bezier_start_tangent() 632 tangent[3] = bez->y3; in bezier_start_tangent() [all …]
|
D | stroker.c | 963 VGfloat tangent[4]; in vg_stroke_outline() local 966 bezier_start_tangent(&bezier, tangent); in vg_stroke_outline() 967 line_translate(tangent, in vg_stroke_outline() 975 create_joins(stroker, prev[0], prev[1], tangent, in vg_stroke_outline() 980 start_tangent[0] = tangent[0]; in vg_stroke_outline() 981 start_tangent[1] = tangent[1]; in vg_stroke_outline() 982 start_tangent[2] = tangent[2]; in vg_stroke_outline() 983 start_tangent[3] = tangent[3]; in vg_stroke_outline() 986 create_joins(stroker, prev[0], prev[1], tangent, in vg_stroke_outline()
|
D | bezier.h | 74 float *tangent);
|
/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/eigen/Eigen/src/Core/ |
D | GlobalFunctions.h | 62 EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(tan,scalar_tan_op,tangent,\sa ArrayBase::tan) 63 EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(atan,scalar_atan_op,arc-tangent,\sa ArrayBase::atan) 68 EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(tanh,scalar_tanh_op,hyperbolic tangent,\sa ArrayBase::tanh)
|
/external/skia/include/core/ |
D | SkPathMeasure.h | 48 SkVector* tangent);
|
/external/libmicrohttpd/m4/ |
D | ax_count_cpus.m4 | 19 # Copyright (c) 2012 Brian Aker <brian@tangent.org>
|
/external/skia/samplecode/ |
D | SampleAAGeometry.cpp | 1117 SkVector tangent = SkEvalQuadTangentAt(pts, t); in draw_bisects() local 1118 tangent.setLength(fWidthControl.fValLo * 2); in draw_bisects() 1120 maxPt.fX + tangent.fY, maxPt.fY - tangent.fX, fSkeletonPaint); in draw_bisects() 1162 SkVector tangent; in draw_bisects() local 1163 SkEvalCubicAt(pts, tMax[tIndex], &maxPt, &tangent, NULL); in draw_bisects() 1164 tangent.setLength(fWidthControl.fValLo * 2); in draw_bisects() 1166 maxPt.fX + tangent.fY, maxPt.fY - tangent.fX, fSkeletonPaint); in draw_bisects()
|
/external/eigen/doc/ |
D | CoeffwiseMathFunctionsTable.dox | 241 <td>computes tangent</td> 277 <td>computes arc tangent (\f$ \tan^{-1} a_i \f$)</td> 316 <td>computes hyperbolic tangent</td>
|
/external/swiftshader/src/Shader/ |
D | ShaderCore.cpp | 400 Float4 tangent(RValue<Float4> x, bool pp) in tangent() function 1523 dst.x = tangent(src.x, pp); in tan() 1524 dst.y = tangent(src.y, pp); in tan() 1525 dst.z = tangent(src.z, pp); in tan() 1526 dst.w = tangent(src.w, pp); in tan()
|
D | ShaderCore.hpp | 100 Float4 tangent(RValue<Float4> x, bool pp = false);
|
/external/jline/src/src/test/resources/jline/example/ |
D | english.gz |
|