/third_party/flutter/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 …]
|
/third_party/skia/tests/ |
D | PathMeasureTest.cpp | 116 SkVector tangent; in DEF_TEST() local 117 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 123 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); in DEF_TEST() 124 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST() 142 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in DEF_TEST() 148 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1); in DEF_TEST() 149 REPORTER_ASSERT(reporter, tangent.fY == 0); in DEF_TEST() 150 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent)); in DEF_TEST() 155 REPORTER_ASSERT(reporter, tangent.fX == 0); in DEF_TEST() 156 REPORTER_ASSERT(reporter, tangent.fY == SK_Scalar1); in DEF_TEST() [all …]
|
/third_party/skia/docs/examples/ |
D | Path_addRRect_2.cpp | 19 SkVector tangent; in draw() local 20 if (!pathMeasure.getPosTan(0, &position, &tangent)) { in draw() 23 SkRSXform rsxForm = SkRSXform::Make(tangent.fX, tangent.fY, in draw() 24 position.fX + tangent.fY * 5, position.fY - tangent.fX * 5); in draw()
|
/third_party/flutter/skia/docs/examples/ |
D | Path_addRRect_2.cpp | 19 SkVector tangent; in draw() local 20 if (!pathMeasure.getPosTan(0, &position, &tangent)) { in draw() 23 SkRSXform rsxForm = SkRSXform::Make(tangent.fX, tangent.fY, in draw() 24 position.fX + tangent.fY * 5, position.fY - tangent.fX * 5); in draw()
|
/third_party/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 | 139 SkVector tangent; in morphpoints() local 144 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints() 152 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
|
/third_party/flutter/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 | 86 SkVector tangent; in morphpoints() local 91 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints() 99 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0); in morphpoints()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | handed_coordinate_space.inl | 9 tvec3<T, P> const & tangent, argument 14 return dot(cross(normal, tangent), binormal) > T(0); 20 tvec3<T, P> const & tangent, argument 25 return dot(cross(normal, tangent), binormal) < T(0);
|
D | handed_coordinate_space.hpp | 31 tvec3<T, P> const & tangent, 39 tvec3<T, P> const & tangent,
|
/third_party/skia/src/core/ |
D | SkContourMeasure.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 | 470 SkVector tangent; in extend_pts() local 472 tangent = *first - *++ctrl; in extend_pts() 473 } while (tangent.isZero() && --controls > 0); in extend_pts() 474 if (tangent.isZero()) { in extend_pts() 475 tangent.set(1, 0); in extend_pts() 478 tangent.normalize(); in extend_pts() 481 first->fX += tangent.fX * capOutset; in extend_pts() 482 first->fY += tangent.fY * capOutset; in extend_pts() 491 SkVector tangent; in extend_pts() local 493 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()
|
/third_party/flutter/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()
|
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIX/ |
D | SGIX_fragment_lighting_space.txt | 29 object-space or tangent-space on a per-vertex basis. 38 The tangent-space transform uses the per-vertex tangent and binormal 92 then calculations are carried out in tangent space by 93 constructing an orthonormal basis from the per-vertex tangent, 95 eye-space shading vectors into tangent space on a 103 b = cross(normal,tangent); 109 t = tangent 131 n to (0,0,1), ie, maps vectors to tangent space. 137 transformed by Mi to the tangent space shading vectors, Vts, Ltsi, Htsi, sdltsi.
|
/third_party/openGLES/extensions/SGIX/ |
D | SGIX_fragment_lighting_space.txt | 29 object-space or tangent-space on a per-vertex basis. 38 The tangent-space transform uses the per-vertex tangent and binormal 92 then calculations are carried out in tangent space by 93 constructing an orthonormal basis from the per-vertex tangent, 95 eye-space shading vectors into tangent space on a 103 b = cross(normal,tangent); 109 t = tangent 131 n to (0,0,1), ie, maps vectors to tangent space. 137 transformed by Mi to the tangent space shading vectors, Vts, Ltsi, Htsi, sdltsi.
|
/third_party/flutter/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()
|
/third_party/skia/fuzz/ |
D | FuzzPathMeasure.cpp | 31 SkVector tangent; in DEF_FUZZ() local 32 ignoreResult(measure.getPosTan(distance[0], &position, &tangent)); in DEF_FUZZ() 36 ignoreResult(measure.getPosTan(distance[3], &position, &tangent)); in DEF_FUZZ()
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_coordinate_frame.txt | 25 This extension allows specifying a per-vertex tangent and binormal 96 In addition, a current normal, tangent, binormal, 106 normal coordinates, tangent coordinates, binormal coordinates, 112 The current normal, tangent and binormal are set using 121 The current normal, tangent and binormal are set to the given... 155 to include "tangent and binormal" references after each reference to
|
D | EXT_texture_perturb_normal.txt | 48 * do we need to specify how evaluators compute the tangent and binormal 104 post-texture-environment color are used, along with the tangent and 106 fragment. The tangent vector for the fragment is multiplied by the 136 the tangent and binormal to perturb the normal vector and this 137 extension makes no sense without the tangent and binormal.
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_coordinate_frame.txt | 25 This extension allows specifying a per-vertex tangent and binormal 96 In addition, a current normal, tangent, binormal, 106 normal coordinates, tangent coordinates, binormal coordinates, 112 The current normal, tangent and binormal are set using 121 The current normal, tangent and binormal are set to the given... 155 to include "tangent and binormal" references after each reference to
|
D | EXT_texture_perturb_normal.txt | 48 * do we need to specify how evaluators compute the tangent and binormal 104 post-texture-environment color are used, along with the tangent and 106 fragment. The tangent vector for the fragment is multiplied by the 136 the tangent and binormal to perturb the normal vector and this 137 extension makes no sense without the tangent and binormal.
|
/third_party/flutter/skia/gm/ |
D | strokes.cpp | 262 SkVector tangent = pts[1] - pts[2]; variable 263 tangent.normalize(); 267 pts2[0].fX += tangent.fX * capOutset; 268 pts2[0].fY += tangent.fY * capOutset; 269 pts2[1].fX += tangent.fX * capOutset; 270 pts2[1].fY += tangent.fY * capOutset; 271 pts2[2].fX += -tangent.fX * capOutset; 272 pts2[2].fY += -tangent.fY * capOutset;
|