/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/ |
D | EllipseContent.java | 86 float halfWidth = size.x / 2f; in getPath() local 90 float cpW = halfWidth * ELLIPSE_CONTROL_POINT_PERCENTAGE; in getPath() 96 path.cubicTo(0 - cpW, -halfHeight, -halfWidth, 0 - cpH, -halfWidth, 0); in getPath() 97 path.cubicTo(-halfWidth, 0 + cpH, 0 - cpW, halfHeight, 0, halfHeight); in getPath() 98 path.cubicTo(0 + cpW, halfHeight, halfWidth, 0 + cpH, halfWidth, 0); in getPath() 99 path.cubicTo(halfWidth, 0 - cpH, 0 + cpW, -halfHeight, 0, -halfHeight); in getPath() 102 path.cubicTo(0 + cpW, -halfHeight, halfWidth, 0 - cpH, halfWidth, 0); in getPath() 103 path.cubicTo(halfWidth, 0 + cpH, 0 + cpW, halfHeight, 0, halfHeight); in getPath() 104 path.cubicTo(0 - cpW, halfHeight, -halfWidth, 0 + cpH, -halfWidth, 0); in getPath() 105 path.cubicTo(-halfWidth, 0 - cpH, 0 - cpW, -halfHeight, 0, -halfHeight); in getPath()
|
D | RectangleContent.java | 96 float halfWidth = size.x / 2f; in getPath() local 100 float maxRadius = Math.min(halfWidth, halfHeight); in getPath() 108 path.moveTo(position.x + halfWidth, position.y - halfHeight + radius); in getPath() 110 path.lineTo(position.x + halfWidth, position.y + halfHeight - radius); in getPath() 113 rect.set(position.x + halfWidth - 2 * radius, in getPath() 115 position.x + halfWidth, in getPath() 120 path.lineTo(position.x - halfWidth + radius, position.y + halfHeight); in getPath() 123 rect.set(position.x - halfWidth, in getPath() 125 position.x - halfWidth + 2 * radius, in getPath() 130 path.lineTo(position.x - halfWidth, position.y - halfHeight + radius); in getPath() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_aaline.c | 49 GLfloat halfWidth; /* half of line width */ member 374 xLeft = x0 - line->halfWidth; in segment() 375 xRight = x1 + line->halfWidth; in segment() 377 yBot = y0 - 3.0F * line->halfWidth; in segment() 378 yTop = y0 + line->halfWidth; in segment() 381 yBot = y0 - line->halfWidth; in segment() 382 yTop = y0 + 3.0F * line->halfWidth; in segment() 386 xLeft = x1 - line->halfWidth; in segment() 387 xRight = x0 + line->halfWidth; in segment() 389 yBot = y1 - 3.0F * line->halfWidth; in segment() [all …]
|
D | s_aalinetemp.h | 122 line.halfWidth = 0.5F * CLAMP(ctx->Line.Width, in NAME() 132 line.xAdj = line.dx / line.len * line.halfWidth; in NAME() 133 line.yAdj = line.dy / line.len * line.halfWidth; in NAME()
|
/external/skia/src/effects/ |
D | SkDashPathEffect.cpp | 290 SkScalar halfWidth, halfHeight; in onAsPoints() local 292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints() 295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints() 300 results->fFirst.addRect(x - halfWidth, y - halfHeight, in onAsPoints() 301 x + halfWidth, y + halfHeight); in onAsPoints() 341 SkScalar halfWidth, halfHeight; in onAsPoints() local 343 halfWidth = SkScalarHalf(temp); in onAsPoints() 346 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints() 349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints() 350 x + halfWidth, y + halfHeight); in onAsPoints()
|
/external/skqp/src/effects/ |
D | SkDashPathEffect.cpp | 290 SkScalar halfWidth, halfHeight; in onAsPoints() local 292 halfWidth = SkScalarHalf(clampedInitialDashLength); in onAsPoints() 295 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints() 300 results->fFirst.addRect(x - halfWidth, y - halfHeight, in onAsPoints() 301 x + halfWidth, y + halfHeight); in onAsPoints() 341 SkScalar halfWidth, halfHeight; in onAsPoints() local 343 halfWidth = SkScalarHalf(temp); in onAsPoints() 346 halfWidth = SkScalarHalf(rec.getWidth()); in onAsPoints() 349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints() 350 x + halfWidth, y + halfHeight); in onAsPoints()
|
/external/skqp/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 295 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local 298 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 304 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 310 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 316 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 322 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 328 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 334 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 340 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
|
D | GrOvalOpFactory.cpp | 965 SkScalar halfWidth = 0; in CircleOp() local 968 halfWidth = SK_ScalarHalf; in CircleOp() 970 halfWidth = SkScalarHalf(strokeWidth); in CircleOp() 973 outerRadius += halfWidth; in CircleOp() 975 innerRadius = radius - halfWidth; in CircleOp() 1116 radius += halfWidth; in CircleOp() 1198 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local 1212 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws() 1220 vertices.write(center + offset * halfWidth, in onPrepareDraws() 1403 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local [all …]
|
/external/skia/src/gpu/ops/ |
D | GrShadowRRectOp.cpp | 282 SkScalar halfWidth = 0.5f * bounds.width(); in fillInCircleVerts() local 285 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 291 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 297 (*verts)->fPos = center + SkPoint::Make(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 303 (*verts)->fPos = center + SkPoint::Make(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 309 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 315 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 321 (*verts)->fPos = center + SkPoint::Make(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 327 (*verts)->fPos = center + SkPoint::Make(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
|
D | GrOvalOpFactory.cpp | 1086 SkScalar halfWidth = 0; in CircleOp() local 1089 halfWidth = SK_ScalarHalf; in CircleOp() 1091 halfWidth = SkScalarHalf(strokeWidth); in CircleOp() 1094 outerRadius += halfWidth; in CircleOp() 1096 innerRadius = radius - halfWidth; in CircleOp() 1242 radius += halfWidth; in CircleOp() 1333 SkScalar halfWidth = 0.5f * bounds.width(); in onPrepareDraws() local 1347 offsetClipDist = 0.5f / halfWidth; in onPrepareDraws() 1355 vertices.write(center + offset * halfWidth, in onPrepareDraws() 1568 SkScalar halfWidth = 0; in ButtCapDashedCircleOp() local [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateVPTests.cpp | 270 const float halfWidth = (float)WIDTH / 2; in iterate() local 277 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate() 278 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate() 279 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate() 280 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate() 286 { { (deInt32)halfWidth, quarterHeight }, { quarterWidth, quarterHeight } }, in iterate() 287 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
|
/external/skqp/src/gpu/effects/ |
D | GrGaussianConvolutionFragmentProcessor.h | 27 int halfWidth, in Make() argument 32 std::move(proxy), dir, halfWidth, gaussianSigma, mode, bounds)); in Make() 75 int halfWidth, float gaussianSigma,
|
/external/skia/src/gpu/effects/ |
D | GrGaussianConvolutionFragmentProcessor.h | 34 int halfWidth, 57 int halfWidth,
|
D | GrGaussianConvolutionFragmentProcessor.cpp | 161 int halfWidth, in Make() argument 175 halfWidth = 0; in Make() 184 case Direction::kX: domain.outset(halfWidth, 0); break; in Make() 185 case Direction::kY: domain.outset(0, halfWidth); break; in Make() 210 std::move(child), dir, halfWidth, gaussianSigma)); in Make()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | InputGameInterface.java | 99 final float halfWidth = ButtonConstants.MOVEMENT_SLIDER_BAR_WIDTH / 2.0f; in update() local 100 final float center = ButtonConstants.MOVEMENT_SLIDER_X + halfWidth; in update() 102 float magnitudeRamp = Math.abs(offset) > halfWidth ? 1.0f : (Math.abs(offset) / halfWidth); in update()
|
D | SimpleCollisionComponent.java | 62 final float halfWidth = parentObject.width / 2.0f; in update() local 65 parentObject.getPosition().x = mHitPoint.x - halfWidth; in update()
|
D | GameRenderer.java | 214 final float halfWidth = mHalfWidth; in onDrawFrame() local 222 x = (x - mCameraX) + halfWidth; in onDrawFrame()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/ |
D | LottieDrawable.java | 1154 float halfWidth = bounds.width() / 2f; 1156 float scaledHalfWidth = halfWidth * maxScale; 1160 halfWidth - scaledHalfWidth, 1200 float halfWidth = composition.getBounds().width() / 2f; local 1202 float scaledHalfWidth = halfWidth * scale; 1206 getScale() * halfWidth - scaledHalfWidth,
|
/external/deqp/external/vulkancts/modules/vulkan/clipping/ |
D | vktClippingTests.cpp | 941 const float halfWidth = lineWidth / float(RENDER_SIZE); in testWideLines() local 957 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines() 958 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines() 959 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines() 960 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
|
/external/skqp/src/gpu/ |
D | SkGpuDevice.cpp | 575 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() local 576 SkASSERT(halfWidth > 0); in drawStrokedLine() 591 xtraLength = halfWidth; in drawStrokedLine() 597 SkRect rect = SkRect::MakeLTRB(mid.fX-halfWidth, mid.fY - 0.5f*length - xtraLength, in drawStrokedLine() 598 mid.fX+halfWidth, mid.fY + 0.5f*length + xtraLength); in drawStrokedLine()
|
/external/deqp/external/vulkancts/modules/vulkan/wsi/ |
D | vktWsiSwapchainTests.cpp | 2142 const deUint32 halfWidth = desiredSize.x() / 2; in deviceGroupRenderTest2() local 2146 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2() 2147 { { (deInt32)halfWidth, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2() 2148 { { 0, 0 }, { halfWidth, height } }, // offset, extent in deviceGroupRenderTest2() 2149 { { (deInt32)halfWidth, 0 }, { halfWidth, height } } // offset, extent in deviceGroupRenderTest2()
|
/external/freetype/src/psaux/ |
D | pshints.c | 691 CF2_Fixed halfWidth = in cf2_hintmap_insertHint() local 697 firstHintEdge->dsCoord = SUB_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint() 698 secondHintEdge->dsCoord = ADD_INT32( midpoint, halfWidth ); in cf2_hintmap_insertHint()
|
/external/skqp/tests/ |
D | RoundRectTest.cpp | 731 SkScalar halfWidth = SkScalarHalf(dst.width()); in test_issue_2696() local 736 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
|
/external/skia/src/gpu/ |
D | GrSurfaceDrawContext.cpp | 1669 const SkScalar halfWidth = 0.5f * stroke.getWidth(); in drawStrokedLine() local 1670 if (halfWidth <= 0.f) { in drawStrokedLine() 1685 parallel *= halfWidth; in drawStrokedLine()
|
/external/skia/tests/ |
D | RoundRectTest.cpp | 945 SkScalar halfWidth = SkScalarHalf(dst.width()); in test_issue_2696() local 950 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth)); in test_issue_2696()
|