/external/skia/tests/ |
H A D | PathMeasureTest.cpp | 115 SkVector tangent; local 116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); 122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); 123 REPORTER_ASSERT(reporter, tangent.fY == 0); 141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); 147 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1); 148 REPORTER_ASSERT(reporter, tangent.fY == 0); 149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent)); 154 REPORTER_ASSERT(reporter, tangent.fX == 0); 155 REPORTER_ASSERT(reporter, tangent [all...] |
/external/skqp/tests/ |
H A D | PathMeasureTest.cpp | 115 SkVector tangent; local 116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); 122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); 123 REPORTER_ASSERT(reporter, tangent.fY == 0); 141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); 147 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1); 148 REPORTER_ASSERT(reporter, tangent.fY == 0); 149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent)); 154 REPORTER_ASSERT(reporter, tangent.fX == 0); 155 REPORTER_ASSERT(reporter, tangent [all...] |
/external/vulkan-validation-layers/libs/glm/gtx/ |
H A D | handed_coordinate_space.hpp | 57 detail::tvec3<T, P> const & tangent, 65 detail::tvec3<T, P> const & tangent,
|
/external/skia/src/effects/ |
H A D | SkDashPathEffect.cpp | 200 SkVector tangent = pts[1] - pts[0]; local 201 if (tangent.isZero()) { 205 tangent.scale(SkScalarInvert(length)); 209 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || 210 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { 212 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || 213 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { 280 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); 281 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); 313 SkScalar x = pts[0].fX + tangent [all...] |
H A D | Sk1DPathEffect.cpp | 82 SkVector tangent; local 87 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { 95 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
|
H A D | SkDiscretePathEffect.cpp | 28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { argument 29 SkVector normal = tangent;
|
/external/skqp/src/effects/ |
H A D | SkDashPathEffect.cpp | 200 SkVector tangent = pts[1] - pts[0]; local 201 if (tangent.isZero()) { 205 tangent.scale(SkScalarInvert(length)); 209 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || 210 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { 212 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || 213 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { 280 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); 281 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); 313 SkScalar x = pts[0].fX + tangent [all...] |
H A D | Sk1DPathEffect.cpp | 79 SkVector tangent; local 84 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { 92 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
|
H A D | SkDiscretePathEffect.cpp | 28 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { argument 29 SkVector normal = tangent;
|
/external/skia/src/core/ |
H A D | SkPathMeasure.cpp | 435 SkScalar t, SkPoint* pos, SkVector* tangent) { 442 if (tangent) { 443 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); 447 SkEvalQuadAt(pts, t, pos, tangent); 448 if (tangent) { 449 tangent->normalize(); 453 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); 454 if (tangent) { 455 tangent->normalize(); 459 SkEvalCubicAt(pts, t, pos, tangent, nullpt [all...] |
H A D | SkScan_Hairline.cpp | 421 /* Extend the points in the direction of the starting or ending tangent by 1/2 unit to 423 the control point, use the next control point to create a tangent. If the curve 434 SkVector tangent; 436 tangent = *first - *++ctrl; 437 } while (tangent.isZero() && --controls > 0); 438 if (tangent.isZero()) { 439 tangent.set(1, 0); 442 tangent.normalize(); 445 first->fX += tangent.fX * capOutset; 446 first->fY += tangent [all...] |
H A D | SkGeometry.cpp | 103 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { argument 110 if (tangent) { 111 *tangent = SkEvalQuadTangentAt(src, t); 121 // zero tangent vector when t is 0 or 1, and the control point is equal 122 // to the end point. In this case, use the quad end points to compute the tangent. 313 SkVector* tangent, SkVector* curvature) { 320 if (tangent) { 321 // The derivative equation returns a zero tangent vector when t is 0 or 1, and the 323 // next control point or the end points to compute the tangent. 326 *tangent [all...] |
H A D | SkStroke.cpp | 82 SkPoint fTangentStart; // a point tangent to fQuad[0] 83 SkPoint fTangentEnd; // a point tangent to fQuad[2] 208 SkPoint* tangent) const; 213 SkPoint* tangent) const; 221 SkPoint* tangent) const; 232 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const; 762 // compute the perpendicular point and its tangent. 764 SkPoint* tangent) const { 776 if (tangent) { 777 tangent [all...] |
H A D | SkDevice.cpp | 353 SkVector tangent; local 359 if (!meas.getPosTan(sx, &pos, &tangent)) { 361 tangent.set(0, 0); 369 matrix.setSinCos(tangent.fY, tangent.fX); 374 dst[i].set(pos.fX - tangent.fY * sy, pos.fY + tangent.fX * sy);
|
H A D | SkGeometry.h | 41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr); 254 * Given a t-value [0...1] return its position and/or tangent. 256 * If tangent is not null, return its tangent at the t-value. NOTE the 257 * tangent value's length is arbitrary, and only its direction should 260 void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const;
|
/external/skqp/src/core/ |
H A D | SkPathMeasure.cpp | 435 SkScalar t, SkPoint* pos, SkVector* tangent) { 442 if (tangent) { 443 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); 447 SkEvalQuadAt(pts, t, pos, tangent); 448 if (tangent) { 449 tangent->normalize(); 453 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); 454 if (tangent) { 455 tangent->normalize(); 459 SkEvalCubicAt(pts, t, pos, tangent, nullpt [all...] |
H A D | SkScan_Hairline.cpp | 421 /* Extend the points in the direction of the starting or ending tangent by 1/2 unit to 423 the control point, use the next control point to create a tangent. If the curve 434 SkVector tangent; 436 tangent = *first - *++ctrl; 437 } while (tangent.isZero() && --controls > 0); 438 if (tangent.isZero()) { 439 tangent.set(1, 0); 442 tangent.normalize(); 445 first->fX += tangent.fX * capOutset; 446 first->fY += tangent [all...] |
H A D | SkGeometry.cpp | 103 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent) { argument 110 if (tangent) { 111 *tangent = SkEvalQuadTangentAt(src, t); 121 // zero tangent vector when t is 0 or 1, and the control point is equal 122 // to the end point. In this case, use the quad end points to compute the tangent. 313 SkVector* tangent, SkVector* curvature) { 320 if (tangent) { 321 // The derivative equation returns a zero tangent vector when t is 0 or 1, and the 323 // next control point or the end points to compute the tangent. 326 *tangent [all...] |
H A D | SkStroke.cpp | 82 SkPoint fTangentStart; // a point tangent to fQuad[0] 83 SkPoint fTangentEnd; // a point tangent to fQuad[2] 208 SkPoint* tangent) const; 213 SkPoint* tangent) const; 221 SkPoint* tangent) const; 232 void setRayPts(const SkPoint& tPt, SkVector* dxy, SkPoint* onPt, SkPoint* tangent) const; 761 // compute the perpendicular point and its tangent. 763 SkPoint* tangent) const { 775 if (tangent) { 776 tangent [all...] |
H A D | SkDevice.cpp | 352 SkVector tangent; local 358 if (!meas.getPosTan(sx, &pos, &tangent)) { 360 tangent.set(0, 0); 368 matrix.setSinCos(tangent.fY, tangent.fX); 373 dst[i].set(pos.fX - tangent.fY * sy, pos.fY + tangent.fX * sy);
|
/external/skqp/gm/ |
H A D | strokes.cpp | 249 SkVector tangent = pts[1] - pts[2]; local 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/skia/include/core/ |
H A D | SkPathMeasure.h | 43 the corresponding position and tangent. 45 position and tangent are unchanged. 48 SkVector* tangent);
|
/external/skqp/include/core/ |
H A D | SkPathMeasure.h | 43 the corresponding position and tangent. 45 position and tangent are unchanged. 48 SkVector* tangent);
|
/external/eigen/Eigen/src/Core/ |
H A 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/gm/ |
H A D | strokes.cpp | 249 SkVector tangent = pts[1] - pts[2]; local 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;
|