Home
last modified time | relevance | path

Searched refs:centerY (Results 1 – 25 of 163) sorted by relevance

1234567

/external/replicaisland/tools/
DExtractPoints.js109 edge.centerY = edge.endY - (height / 2);
117 tile.centerY = totalY;
120 var row = Math.floor(tile.centerY / tileSizeY);
126 tile.centerY -= tile.yOffset;
151 edge.centerY -= tile.yOffset;
163 if (Math.abs(edge.centerY - tile.centerY) >
164 Math.abs((edge.centerY + edge.normalY) - tile.centerY)) {
174 edge.centerY = tileSizeY - edge.centerY;
241 var normalY = Math.round(tile.centerY +
246 offsetY + tile.centerY - 1);
[all …]
/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()
110 final float centerY = deltaY / 2.0f; in intersects() local
114 mWorkspaceVector2.y += centerY; in intersects()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DImageViewState.java17 private final float centerY; field in ImageViewState
24 this.centerY = center.y; in ImageViewState()
33 return new PointF(centerX, centerY); in getCenter()
/external/deqp/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTexture.cpp1013 glw::GLuint centerY = m_test_configuration.get_height() / 2; in checkLinear() local
1024 for (glw::GLuint y = centerY; y < centerY + stepY; ++y) in checkLinear()
1032 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1043 for (glw::GLuint y = centerY; y > centerY - stepY; --y) in checkLinear()
1051 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1066 index = centerY + x * out_components + c; in checkLinear()
1070 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1072 << "at point (x, y) = (" << x << "," << centerY in checkLinear()
1081 for (glw::GLuint x = centerY; x > centerX - stepX; --x) in checkLinear()
1085 index = centerY + x * out_components + c; in checkLinear()
[all …]
/external/skia/docs/examples/
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/skia/tests/
DPathOpsAsWindingTest.cpp22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
37 path.cubicTo(aX34, rect.fTop, rect.fRight, aY14, rect.fRight, rect.centerY()); in build_squircle()
39 path.cubicTo(aX14, rect.fBottom, rect.fLeft, aY34, rect.fLeft, rect.centerY()); in build_squircle()
/external/skqp/tests/
DPathOpsAsWindingTest.cpp22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
37 path.cubicTo(aX34, rect.fTop, rect.fRight, aY14, rect.fRight, rect.centerY()); in build_squircle()
39 path.cubicTo(aX14, rect.fBottom, rect.fLeft, aY34, rect.fLeft, rect.centerY()); in build_squircle()
/external/skia/gm/
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()},
Dfilltypes.cpp55 canvas->translate(r.centerX(), r.centerY()); in showPath()
57 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
Daddarc.cpp282 SkScalar centerY = outerRadius; variable
290 centerY + innerRadius * sk_float_sin(startAngles[i]));
292 centerY + outerRadius * sk_float_sin(startAngles[i]));
298 centerY + innerRadius * sk_float_sin(endAngle));
Dcroppedrects.cpp91 {kSrcImageClip.fLeft - kSrcImageClip.width(), kSrcImageClip.centerY()}, in onDraw()
92 {kSrcImageClip.fRight + 3 * kSrcImageClip.width(), kSrcImageClip.centerY()}); in onDraw()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DCameraConnectionFragment.java582 final float centerY = viewRect.centerY(); 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/perfetto/ui/src/tracks/heap_profile/
Dfrontend.ts39 private centerY = this.getHeight() / 2; property in HeapProfileTrack
69 this.centerY,
149 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/perfetto/ui/src/tracks/cpu_profile/
Dfrontend.ts42 private centerY = this.getHeight() / 2; property in CpuProfileTrack
72 this.centerY,
153 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/angle/src/tests/gl_tests/
DProvokingVertexTest.cpp235 float centerY = sumY / 3.0f * 0.5f + 0.5f; in TEST_P() local
239 static_cast<unsigned int>(centerY * static_cast<GLfloat>(getWindowHeight())); in TEST_P()
291 float centerY = sumY / 3.0f * 0.5f + 0.5f; in TEST_P() local
295 static_cast<unsigned int>(centerY * static_cast<GLfloat>(getWindowHeight())); 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()
DSampleLitAtlas.cpp105 this->drawLightDir(canvas, fBounds.centerX(), fBounds.centerY()); in onDraw()
195 void drawLightDir(SkCanvas* canvas, SkScalar centerX, SkScalar centerY) { in drawLightDir() argument
201 centerY - kBgLen * fLightDir.fY); in drawLightDir()
203 centerY - (kBgLen-kSmLen) * fLightDir.fY); in drawLightDir()
206 canvas->drawLine(centerX, centerY, p1.fX, p1.fY, p); in drawLightDir()
353 fPosition.set(bounds.centerX(), bounds.centerY()); in initShip()
/external/skia/samplecode/
DSampleFillType.cpp40 canvas->translate(r.centerX(), r.centerY()); in showPath()
42 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
/external/skqp/gm/
Dfilltypes.cpp47 canvas->translate(r.centerX(), r.centerY()); in showPath()
49 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
Daddarc.cpp274 SkScalar centerY = outerRadius; variable
282 centerY + innerRadius * sk_float_sin(startAngles[i]));
284 centerY + outerRadius * sk_float_sin(startAngles[i]));
290 centerY + innerRadius * sk_float_sin(endAngle));
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DBoundingBoxUtil.java212 float centerY = values[1]; in convertFromCenter() local
217 float top = centerY - h / 2; in convertFromCenter()
219 float bottom = centerY + h / 2; in convertFromCenter()
/external/skqp/modules/sksg/samples/
DSampleSVGPong.cpp91 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in onOnceBeforeDraw()
96 fieldBounds.centerY()), in onOnceBeforeDraw()
100 fieldBounds.centerY()), in onOnceBeforeDraw()
234 SkPoint shadowOffset = pos - SkPoint::Make(kBounds.centerX(), kBounds.centerY()); in updateDom()
280 pitcher->spd.fY = (kBounds.centerY() - pitcher->pos.fY) / t; in updatePaddleStrategy()
/external/skia/modules/sksg/samples/
DSampleSVGPong.cpp94 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in onOnceBeforeDraw()
99 fieldBounds.centerY()), in onOnceBeforeDraw()
103 fieldBounds.centerY()), in onOnceBeforeDraw()
243 SkPoint shadowOffset = pos - SkPoint::Make(kBounds.centerX(), kBounds.centerY()); in updateDom()
289 pitcher->spd.fY = (kBounds.centerY() - pitcher->pos.fY) / t; in updatePaddleStrategy()

1234567