Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 12 of 12) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DEllipseContent.java87 float halfHeight = size.y / 2f; in getPath() local
91 float cpH = halfHeight * ELLIPSE_CONTROL_POINT_PERCENTAGE; in getPath()
95 path.moveTo(0, -halfHeight); 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()
101 path.moveTo(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()
[all …]
DRectangleContent.java97 float halfHeight = size.y / 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()
114 position.y + halfHeight - 2 * radius, in getPath()
116 position.y + halfHeight); in getPath()
120 path.lineTo(position.x - halfWidth + radius, position.y + halfHeight); in getPath()
124 position.y + halfHeight - 2 * radius, in getPath()
126 position.y + halfHeight); in getPath()
130 path.lineTo(position.x - halfWidth, position.y - halfHeight + radius); in getPath()
[all …]
/external/skia/src/effects/
DSkDashPathEffect.cpp290 SkScalar halfWidth, halfHeight; in onAsPoints() local
293 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
296 halfHeight = SkScalarHalf(clampedInitialDashLength); 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
344 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
347 halfHeight = SkScalarHalf(temp); in onAsPoints()
349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
350 x + halfWidth, y + halfHeight); in onAsPoints()
/external/skqp/src/effects/
DSkDashPathEffect.cpp290 SkScalar halfWidth, halfHeight; in onAsPoints() local
293 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
296 halfHeight = SkScalarHalf(clampedInitialDashLength); 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
344 halfHeight = SkScalarHalf(rec.getWidth()); in onAsPoints()
347 halfHeight = SkScalarHalf(temp); in onAsPoints()
349 results->fLast.addRect(x - halfWidth, y - halfHeight, in onAsPoints()
350 x + halfWidth, y + halfHeight); in onAsPoints()
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp271 const float halfHeight = (float)HEIGHT / 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()
287 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
288 { { quarterWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/external/replicaisland/src/com/replica/replicaisland/
DSimpleCollisionComponent.java63 final float halfHeight = parentObject.height / 2.0f; in update() local
69 parentObject.getPosition().y = mHitPoint.y - halfHeight; in update()
DGameRenderer.java215 final float halfHeight = mHalfHeight; in onDrawFrame() local
223 y = (y - mCameraY) + halfHeight; in onDrawFrame()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieDrawable.java1155 float halfHeight = bounds.height() / 2f;
1157 float scaledHalfHeight = halfHeight * maxScale;
1161 halfHeight - scaledHalfHeight);
1201 float halfHeight = composition.getBounds().height() / 2f; local
1203 float scaledHalfHeight = halfHeight * scale;
1207 getScale() * halfHeight - scaledHalfHeight);
/external/skqp/tests/
DRoundRectTest.cpp732 SkScalar halfHeight = SkScalarHalf(dst.height()); in test_issue_2696() local
738 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()
/external/skia/tests/
DRoundRectTest.cpp946 SkScalar halfHeight = SkScalarHalf(dst.height()); in test_issue_2696() local
952 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp2772 const deUint32 halfHeight = m_parameters.extent.height / 2; in MultiViewReadbackTestInstance() local
2778 const deInt32 offsetY = static_cast<deInt32>(halfHeight) * y; in MultiViewReadbackTestInstance()
2779 const VkRect2D area = { { offsetX, offsetY}, {halfWidth, halfHeight} }; in MultiViewReadbackTestInstance()
/external/angle/src/tests/gl_tests/
DStateChangeTest.cpp1738 int halfHeight = getWindowHeight() / 2; in TEST_P() local
1741 EXPECT_PIXEL_COLOR_EQ(quarterWidth, halfHeight, GLColor::blue); in TEST_P()
1744 EXPECT_PIXEL_COLOR_EQ((quarterWidth * 3), halfHeight, GLColor::blue); in TEST_P()