Searched refs:cosTheta (Results 1 – 6 of 6) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowPathParser.java | 453 double cosTheta = Math.cos(thetaD); in drawArc() local 457 double x0p = (x0 * cosTheta + y0 * sinTheta) / a; in drawArc() 458 double y0p = (-x0 * sinTheta + y0 * cosTheta) / b; in drawArc() 459 double x1p = (x1 * cosTheta + y1 * sinTheta) / a; in drawArc() 460 double y1p = (-x1 * sinTheta + y1 * cosTheta) / b; in drawArc() 509 cx = cx * cosTheta - cy * sinTheta; in drawArc() 510 cy = tcx * sinTheta + cy * cosTheta; in drawArc() 547 double cosTheta = Math.cos(theta); in arcToBezier() local 551 double ep1x = (-a * cosTheta * sinEta1) - (b * sinTheta * cosEta1); in arcToBezier() 552 double ep1y = (-a * sinTheta * sinEta1) + (b * cosTheta * cosEta1); in arcToBezier() [all …]
|
/external/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 259 const double cosTheta = (p2x - p0x) / hypotenuse; in init() local 263 cosTheta, sinTheta, -(cosTheta * p0x) - (sinTheta * p0y), in init() 264 -sinTheta, cosTheta, (sinTheta * p0x) - (cosTheta * p0y) in init() 320 const double cosTheta = sqrt(a / (a + b)); in init() local 323 const double gDef = cosTheta * g - sinTheta * f; in init() 324 const double fDef = sinTheta * g + cosTheta * f; in init() 335 const double lambda_cosTheta = lambda * cosTheta; in init()
|
/external/skqp/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 259 const double cosTheta = (p2x - p0x) / hypotenuse; in init() local 263 cosTheta, sinTheta, -(cosTheta * p0x) - (sinTheta * p0y), in init() 264 -sinTheta, cosTheta, (sinTheta * p0x) - (cosTheta * p0y) in init() 320 const double cosTheta = sqrt(a / (a + b)); in init() local 323 const double gDef = cosTheta * g - sinTheta * f; in init() 324 const double fDef = sinTheta * g + cosTheta * f; in init() 335 const double lambda_cosTheta = lambda * cosTheta; in init()
|
/external/skia/src/gpu/ops/ |
D | GrQuadPerEdgeAA.cpp | 136 Sk4f cosTheta = fma(metadata.fDX, nextCW(metadata.fDX), metadata.fDY * nextCW(metadata.fDY)); in get_optimized_outset() local 139 if ((cosTheta.abs() >= 0.9f).anyTrue()) { in get_optimized_outset() 142 *outset = 0.5f * (1.f - cosTheta * cosTheta).rsqrt(); // 1/2sin(theta) in get_optimized_outset() 147 Sk4f halfTanTheta = -cosTheta * (*outset); // cos(pi - theta) = -cos(theta) in get_optimized_outset()
|
/external/autotest/client/deps/webgl_mpd/src/resources/ |
D | J3DI.js | 263 var cosTheta = Math.cos(theta); 267 var y = cosTheta;
|
/external/skqp/src/gpu/ops/ |
D | GrQuadPerEdgeAA.cpp | 110 Sk4f cosTheta = fma(xdiff, nextCW(xdiff), ydiff * nextCW(ydiff)); in adjust_non_rectilinear_outset() local 111 *outset *= (1.f - cosTheta * cosTheta).rsqrt(); in adjust_non_rectilinear_outset()
|