Home
last modified time | relevance | path

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

/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/skia/src/effects/
DSkDashPathEffect.cpp203 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 …]
DSk1DPathEffect.cpp79 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()
DSkDiscretePathEffect.cpp27 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/
Dhanded_coordinate_space.inl15 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);
Dhanded_coordinate_space.hpp57 detail::tvec3<T, P> const & tangent,
65 detail::tvec3<T, P> const & tangent,
/external/skia/src/core/
DSkPathMeasure.cpp436 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 …]
DSkScan_Hairline.cpp434 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 …]
DSkGeometry.cpp101 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 …]
DSkStroke.cpp207 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 …]
DSkDevice.cpp325 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()
DSkGeometry.h41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
217 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
DSkPath.cpp3079 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/
Dbezier.c621 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 …]
Dstroker.c963 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()
Dbezier.h74 float *tangent);
/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/eigen/Eigen/src/Core/
DGlobalFunctions.h62 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/
DSkPathMeasure.h48 SkVector* tangent);
/external/libmicrohttpd/m4/
Dax_count_cpus.m419 # Copyright (c) 2012 Brian Aker <brian@tangent.org>
/external/skia/samplecode/
DSampleAAGeometry.cpp1117 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/
DCoeffwiseMathFunctionsTable.dox241 <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/
DShaderCore.cpp400 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()
DShaderCore.hpp100 Float4 tangent(RValue<Float4> x, bool pp = false);
/external/jline/src/src/test/resources/jline/example/
Denglish.gz