Home
last modified time | relevance | path

Searched refs:cosV (Results 1 – 13 of 13) sorted by relevance

/external/skqp/bench/
DPolyUtilsBench.cpp118 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly() local
119 *poly->push() = SkPoint::Make(c + cosV * r1, c + sinV * r1); in makePoly()
121 sinV = SkScalarSinCos(rad, &cosV); in makePoly()
122 *poly->push() = SkPoint::Make(c + cosV * r2, c + sinV * r2); in makePoly()
145 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly() local
146 *poly->push() = SkPoint::Make(c + cosV * r, c + sinV * r); in makePoly()
172 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly() local
173 *poly->push() = SkPoint::Make(c + cosV * r, c + sinV * r); in makePoly()
196 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in makePoly() local
197 *poly->push() = SkPoint::Make(c + cosV * r, c + sinV * r); in makePoly()
[all …]
DDashBench.cpp147 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in make_unit_star() local
148 path->lineTo(cosV, sinV); in make_unit_star()
/external/angle/samples/torus_lighting/
Dtorus.h45 float cosV = cosf(angleV); in GenerateTorus() local
54 float x = d * cosV; in GenerateTorus()
62 float nx = cosV * cosU; in GenerateTorus()
/external/skqp/gm/
Dhairlines.cpp152 SkScalar cosV, sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle), &cosV); in onOnceBeforeDraw() local
154 SkPoint p0 = SkPoint::Make(kRad * cosV, kRad * sinV); in onOnceBeforeDraw()
156 sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle + kSweepAngle), &cosV); in onOnceBeforeDraw()
158 SkPoint p1 = SkPoint::Make(kRad * cosV, kRad * sinV); in onOnceBeforeDraw()
Dsmallpaths.cpp51 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in make_star() local
52 path->lineTo(c + cosV * r, c + sinV * r); in make_star()
Ddashing.cpp110 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in make_unit_star() local
111 path->lineTo(cosV, sinV); in make_unit_star()
Dpathfill.cpp121 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in make_star() local
122 path->lineTo(c + cosV * r, c + sinV * r); in make_star()
/external/skqp/samplecode/
DSamplePathFill.cpp83 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in make_star() local
84 path->lineTo(c + cosV * r, c + sinV * r); in make_star()
/external/skqp/tests/
DPolyUtilsTest.cpp204 SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV); in DEF_TEST() local
205 *poly.push() = SkPoint::Make(c + cosV * r1, c + sinV * r1); in DEF_TEST()
207 sinV = SkScalarSinCos(rad, &cosV); in DEF_TEST()
208 *poly.push() = SkPoint::Make(c + cosV * r2, c + sinV * r2); in DEF_TEST()
/external/skia/modules/canvaskit/
Dmatrix.js157 var cosV = Math.cos(radians);
159 cosV, -sinV, sdot( sinV, py, 1 - cosV, px),
160 sinV, cosV, sdot(-sinV, px, 1 - cosV, py),
/external/skqp/experimental/canvaskit/
Dinterface.js91 var cosV = Math.cos(radians);
93 cosV, -sinV, sdot( sinV, py, 1 - cosV, px),
94 sinV, cosV, sdot(-sinV, px, 1 - cosV, py),
/external/skqp/src/core/
DSkMatrix.cpp429 void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV, SkScalar px, SkScalar py) { in setSinCos() argument
430 const SkScalar oneMinusCosV = 1 - cosV; in setSinCos()
432 fMat[kMScaleX] = cosV; in setSinCos()
437 fMat[kMScaleY] = cosV; in setSinCos()
462 void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV) { in setSinCos() argument
463 fMat[kMScaleX] = cosV; in setSinCos()
468 fMat[kMScaleY] = cosV; in setSinCos()
478 SkScalar sinV, cosV; in setRotate() local
479 sinV = SkScalarSinCos(SkDegreesToRadians(degrees), &cosV); in setRotate()
480 this->setSinCos(sinV, cosV, px, py); in setRotate()
[all …]
/external/skia/src/core/
DSkMatrix.cpp411 SkMatrix& SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV, SkScalar px, SkScalar py) { in setSinCos() argument
412 const SkScalar oneMinusCosV = 1 - cosV; in setSinCos()
414 fMat[kMScaleX] = cosV; in setSinCos()
419 fMat[kMScaleY] = cosV; in setSinCos()
445 SkMatrix& SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV) { in setSinCos() argument
446 fMat[kMScaleX] = cosV; in setSinCos()
451 fMat[kMScaleY] = cosV; in setSinCos()