/external/skia/tests/ |
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.fY == SK_Scalar1) [all...] |
/external/vulkan-validation-layers/libs/glm/gtx/ |
handed_coordinate_space.hpp | 57 detail::tvec3<T, P> const & tangent, 65 detail::tvec3<T, P> const & tangent,
|
/external/skia/src/effects/ |
SkDashPathEffect.cpp | 203 SkVector tangent = pts[1] - pts[0]; local 204 if (tangent.isZero()) { 208 tangent.scale(SkScalarInvert(length)); 212 if (SkScalarNearlyEqual(SK_Scalar1, tangent.fX) || 213 SkScalarNearlyEqual(-SK_Scalar1, tangent.fX)) { 215 } else if (SkScalarNearlyEqual(SK_Scalar1, tangent.fY) || 216 SkScalarNearlyEqual(-SK_Scalar1, tangent.fY)) { 283 SkScalar x = pts[0].fX + tangent.fX * SkScalarHalf(clampedInitialDashLength); 284 SkScalar y = pts[0].fY + tangent.fY * SkScalarHalf(clampedInitialDashLength); 316 SkScalar x = pts[0].fX + tangent.fX * distance [all...] |
Sk1DPathEffect.cpp | 79 SkVector tangent; local 84 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { 92 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
|
SkDiscretePathEffect.cpp | 27 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { 28 SkVector normal = tangent;
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
bezier.h | 74 float *tangent);
|
bezier.c | 621 float *tangent) 623 tangent[0] = bez->x1; 624 tangent[1] = bez->y1; 625 tangent[2] = bez->x2; 626 tangent[3] = bez->y2; 628 if (null_line(tangent)) { 629 tangent[0] = bez->x1; 630 tangent[1] = bez->y1; 631 tangent[2] = bez->x3; 632 tangent[3] = bez->y3 [all...] |
/frameworks/base/libs/hwui/font/ |
Font.cpp | 238 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) { 245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); 250 // Move along the tangent and offset by the normal 251 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, 252 -tangent->fY * halfWidth + tangent->fX * vOffset); 253 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, 254 tangent->fY * halfWidth + tangent->fX * vOffset) 312 SkVector tangent; local [all...] |
/prebuilts/go/darwin-x86/src/math/ |
tanh.go | 13 // Hyperbolic tangent 23 // Returns hyperbolic tangent of argument in the range MINLOG to MAXLOG. 68 // Tanh returns the hyperbolic tangent of x.
|
tan.go | 8 Floating-point tangent. 18 // Circular tangent 27 // Returns the circular tangent of the radian argument x. 76 // Tan returns the tangent of the radian argument x.
|
atan.go | 17 // Inverse circular tangent (arctangent) 24 // Returns radian angle between -pi/2 and +pi/2 whose tangent is x.
|
atan2.go | 7 // Atan2 returns the arc tangent of y/x, using
|
atanh.go | 39 // Atanh returns the inverse hyperbolic tangent of x.
|
/prebuilts/go/linux-x86/src/math/ |
tanh.go | 13 // Hyperbolic tangent 23 // Returns hyperbolic tangent of argument in the range MINLOG to MAXLOG. 68 // Tanh returns the hyperbolic tangent of x.
|
tan.go | 8 Floating-point tangent. 18 // Circular tangent 27 // Returns the circular tangent of the radian argument x. 76 // Tan returns the tangent of the radian argument x.
|
atan.go | 17 // Inverse circular tangent (arctangent) 24 // Returns radian angle between -pi/2 and +pi/2 whose tangent is x.
|
/external/skia/src/core/ |
SkPathMeasure.cpp | 436 SkScalar t, SkPoint* pos, SkVector* tangent) { 443 if (tangent) { 444 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY); 448 SkEvalQuadAt(pts, t, pos, tangent); 449 if (tangent) { 450 tangent->normalize(); 454 SkConic(pts[0], pts[2], pts[3], pts[1].fX).evalAt(t, pos, tangent); 455 if (tangent) { 456 tangent->normalize(); 460 SkEvalCubicAt(pts, t, pos, tangent, nullptr) [all...] |
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.fY * capOutset [all...] |
/external/skia/gm/ |
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;
|
/prebuilts/go/darwin-x86/src/math/cmplx/ |
tan.go | 31 // Complex circular tangent 58 // Tan returns the tangent of x. 70 // Complex hyperbolic tangent 82 // Tanh returns the hyperbolic tangent of x.
|
asin.go | 108 // Complex circular arc tangent 141 // Atan returns the inverse tangent of x. 165 // Atanh returns the inverse hyperbolic tangent of x.
|
/prebuilts/go/linux-x86/src/math/cmplx/ |
tan.go | 31 // Complex circular tangent 58 // Tan returns the tangent of x. 70 // Complex hyperbolic tangent 82 // Tanh returns the hyperbolic tangent of x.
|
asin.go | 108 // Complex circular arc tangent 141 // Atan returns the inverse tangent of x. 165 // Atanh returns the inverse hyperbolic tangent of x.
|
/external/skia/include/core/ |
SkPathMeasure.h | 43 the corresponding position and tangent. 45 position and tangent are unchanged. 48 SkVector* tangent);
|
/frameworks/rs/script_api/ |
rs_math.spec | 329 summary: Inverse tangent 331 Returns the inverse tangent, in radians. 353 summary: Inverse tangent of a ratio 355 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians. 378 summary: Inverse tangent of a ratio, divided by pi 380 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians, divided by pi. 382 To get an inverse tangent measured in degrees, use <code>atan2pi(n, d) * 180.f</code>. 404 summary: Inverse hyperbolic tangent 406 Returns the inverse hyperbolic tangent, in radians. 427 summary: Inverse tangent divided by p [all...] |