Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 179) sorted by relevance

12345678

/external/replicaisland/tools/
DExtractPoints.js108 edge.centerX = edge.endX - (width / 2);
116 tile.centerX = totalX;
119 var column = Math.floor(tile.centerX / tileSizeX);
125 tile.centerX -= tile.xOffset;
150 edge.centerX -= tile.xOffset;
157 if (Math.abs(edge.centerX - tile.centerX) >
158 Math.abs((edge.centerX + edge.normalX) - tile.centerX)) {
239 var normalX = Math.round(tile.centerX +
245 tileCenterArray[0] = new Array(offsetX + tile.centerX - 1,
247 tileCenterArray[1] = new Array(offsetX + tile.centerX - 1,
[all …]
/external/perfetto/ui/src/tracks/heap_profile/
Dfrontend.ts60 const centerX = data.tsStarts[i]; constant
62 const isHovered = this.hoveredTs === centerX;
64 selection.kind === 'HEAP_PROFILE' && selection.ts === centerX;
68 timeScale.timeToPx(fromNs(centerX)),
134 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left])); constant
135 if (this.isInMarker(x, y, centerX)) {
140 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right])); constant
141 if (this.isInMarker(x, y, centerX)) {
148 isInMarker(x: number, y: number, centerX: number) {
149 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/perfetto/ui/src/tracks/cpu_profile/
Dfrontend.ts63 const centerX = data.tsStarts[i]; constant
65 const isHovered = this.hoveredTs === centerX;
67 selection.kind === 'CPU_PROFILE_SAMPLE' && selection.ts === centerX;
71 timeScale.timeToPx(fromNs(centerX)),
138 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left])); constant
139 if (this.isInMarker(x, y, centerX)) {
144 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right])); constant
145 if (this.isInMarker(x, y, centerX)) {
152 isInMarker(x: number, y: number, centerX: number) {
153 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/replicaisland/src/com/replica/replicaisland/
DSphereCollisionVolume.java27 public SphereCollisionVolume(float radius, float centerX, float centerY) { in SphereCollisionVolume() argument
30 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
35 public SphereCollisionVolume(float radius, float centerX, float centerY, int hit) { in SphereCollisionVolume() argument
38 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
109 final float centerX = deltaX / 2.0f; in intersects() local
113 mWorkspaceVector2.x += centerX; in intersects()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DImageViewState.java15 private final float centerX; field in ImageViewState
23 this.centerX = center.x; in ImageViewState()
33 return new PointF(centerX, centerY); in getCenter()
/external/skia/tests/
DPathOpsAsWindingTest.cpp21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
38 path.cubicTo(rect.fRight, aY34, aX34, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
40 path.cubicTo(rect.fLeft, aY14, aX14, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
/external/skqp/tests/
DPathOpsAsWindingTest.cpp21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
38 path.cubicTo(rect.fRight, aY34, aX34, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
40 path.cubicTo(rect.fLeft, aY14, aX14, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
/external/skqp/gm/
Dpictureimagegenerator.cpp56 canvas->drawCircle(iBox.centerX(), in draw_vector_logo()
62 path.moveTo(iBox.centerX() - accentSize / 2, iBox.bottom() + kVerticalSpacing * accentSize); in draw_vector_logo()
64 path.lineTo(iBox.centerX(), underlineY); in draw_vector_logo()
67 SkRect underlineRect = SkRect::MakeLTRB(iBox.centerX() - iBox.width() * accentSize * 3, in draw_vector_logo()
69 iBox.centerX(), in draw_vector_logo()
72 SkPoint::Make(iBox.centerX(), 0) }; in draw_vector_logo()
Daddarc.cpp273 SkScalar centerX = 50; variable
281 path.moveTo(centerX + innerRadius * sk_float_cos(startAngles[i]),
283 path.lineTo(centerX + outerRadius * sk_float_cos(startAngles[i]),
286 html_canvas_arc(&path, centerX, outerRadius, outerRadius,
289 path.lineTo(centerX + innerRadius * sk_float_cos(endAngle),
291 html_canvas_arc(&path, centerX, outerRadius, innerRadius,
Dfilltypes.cpp47 canvas->translate(r.centerX(), r.centerY()); in showPath()
49 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
/external/skia/gm/
Dpictureimagegenerator.cpp73 canvas->drawCircle(iBox.centerX(), in draw_vector_logo()
79 path.moveTo(iBox.centerX() - accentSize / 2, iBox.bottom() + kVerticalSpacing * accentSize); in draw_vector_logo()
81 path.lineTo(iBox.centerX(), underlineY); in draw_vector_logo()
84 SkRect underlineRect = SkRect::MakeLTRB(iBox.centerX() - iBox.width() * accentSize * 3, in draw_vector_logo()
86 iBox.centerX(), in draw_vector_logo()
89 SkPoint::Make(iBox.centerX(), 0) }; in draw_vector_logo()
Daddarc.cpp281 SkScalar centerX = 50; variable
289 path.moveTo(centerX + innerRadius * sk_float_cos(startAngles[i]),
291 path.lineTo(centerX + outerRadius * sk_float_cos(startAngles[i]),
294 html_canvas_arc(&path, centerX, outerRadius, outerRadius,
297 path.lineTo(centerX + innerRadius * sk_float_cos(endAngle),
299 html_canvas_arc(&path, centerX, outerRadius, innerRadius,
Dlocalmatrixshader.cpp187 auto g1 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
193 auto g2 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
200 auto g3 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
206 auto g4 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
Dorientation.cpp97 drawLabel("top", midX - bounds.centerX(), -bounds.top() + kPad); in make_images()
100 drawLabel("bottom", midX - bounds.centerX(), kImgH - kPad - bounds.bottom()); in make_images()
113 drawLabel(num.c_str(), midX - bounds.centerX(), baseY); in make_images()
Dfilltypes.cpp55 canvas->translate(r.centerX(), r.centerY()); in showPath()
57 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
/external/skia/docs/examples/
DRect_centerX.cpp9 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in draw()
11 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in draw()
DMatrix_setSinCos_2.cpp15 matrix.postTranslate(rect.centerX(), rect.centerY()); in draw()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
DMatrix_setRSXform.cpp14 matrix.setRSXform(SkRSXform::Make(.85f, .25f, rect.centerX(), rect.centerY())); in draw()
16 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
DMatrix_setRotate_2.cpp15 canvas->translate(rect.centerX(), rect.centerY()); in draw()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
/external/deqp/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTexture.cpp1012 glw::GLuint centerX = m_test_configuration.get_width() / 2; in checkLinear() local
1028 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1032 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1034 << "at point (x, y) = (" << centerX << "," << y in checkLinear()
1047 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1051 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1053 << "at point (x, y) = (" << centerX << "," << y in checkLinear()
1062 for (glw::GLuint x = centerX; x < centerX + stepX; ++x) in checkLinear()
1070 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1081 for (glw::GLuint x = centerY; x > centerX - stepX; --x) in checkLinear()
[all …]
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DCameraConnectionFragment.java581 final float centerX = viewRect.centerX(); in configureTransform() local
584 bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY()); in configureTransform()
590 matrix.postScale(scale, scale, centerX, centerY); in configureTransform()
591 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
593 matrix.postRotate(180, centerX, centerY); in configureTransform()
/external/angle/src/tests/gl_tests/
DProvokingVertexTest.cpp234 float centerX = sumX / 3.0f * 0.5f + 0.5f; in TEST_P() local
237 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
290 float centerX = sumX / 3.0f * 0.5f + 0.5f; in TEST_P() local
293 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P()
/external/skqp/samplecode/
DSampleFillType.cpp46 canvas->translate(r.centerX(), r.centerY()); in showPath()
48 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
DSampleArc.cpp103 canvas->drawLine(r.centerX(), r.fTop, r.centerX(), r.fBottom, p); in DrawRectWithLines()
112 SkTextUtils::DrawString(canvas, str.c_str(), rect.centerX(), in DrawLabel()
/external/skia/samplecode/
DSampleFillType.cpp40 canvas->translate(r.centerX(), r.centerY()); in showPath()
42 canvas->translate(-r.centerX(), -r.centerY()); in showPath()

12345678