Home
last modified time | relevance | path

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

12345

/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/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMagnificationController.java29 private float centerY = DEFAULT_CENTER_Y; field in ShadowMagnificationController
50 return centerY; in getCenterY()
76 centerY = DEFAULT_CENTER_Y; in reset()
83 protected boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument
85 this.centerY = centerY; in setCenter()
103 realObject, magnificationRegion, scale, centerX, centerY)); in notifyListeners()
DShadowCanvas.java161 public final float centerY; field in ShadowCanvas.CirclePaintHistoryEvent
165 CirclePaintHistoryEvent(float centerX, float centerY, float radius, Paint paint) { in CirclePaintHistoryEvent() argument
167 this.centerY = centerY; in CirclePaintHistoryEvent()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowMagnificationControllerTest.java68 float centerY = 22.5f; in setCenter_notifiesListener() local
72 magnificationController.setCenter(centerX, centerY, /*animate=*/ false); in setCenter_notifiesListener()
77 assertThat(testListener.centerY).isEqualTo(centerY); in setCenter_notifiesListener()
141 assertThat(testListener.centerY).isEqualTo(0.0f); in reset_notifiesListener()
165 private float centerY = -1f; field in ShadowMagnificationControllerTest.TestListener
173 float centerY) { in onMagnificationChanged() argument
177 this.centerY = centerY; in onMagnificationChanged()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/
DPeriodicVignetteFrameProcessor.java45 private float centerY; field in PeriodicVignetteFrameProcessor
74 float centerY, in PeriodicVignetteFrameProcessor() argument
82 this.centerY = centerY; in PeriodicVignetteFrameProcessor()
93 glProgram.setFloatsUniform("uCenter", new float[] {centerX, centerY}); in initialize()
DAdvancedFrameProcessorFactory.java71 float centerY = 0.5f * (float) Math.sin(theta); in calculateDizzyCropMatrix() local
73 transformationMatrix.postTranslate(/* dx= */ centerX, /* dy= */ centerY); in calculateDizzyCropMatrix()
/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()
DOrbitalMagnetComponent.java67 private void applyMagnetism(GameObject target, float centerX, float centerY, float timeDelta) { in applyMagnetism() argument
68 mCenter.set(centerX, centerY); in applyMagnetism()
/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_setRotate_2.cpp15 canvas->translate(rect.centerX(), rect.centerY()); in draw()
17 canvas->translate(-rect.centerX(), -rect.centerY()); 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()
/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/skia/modules/sksg/slides/
DSVGPongSlide.cpp92 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in load()
97 fieldBounds.centerY()), in load()
101 fieldBounds.centerY()), in load()
236 SkPoint shadowOffset = pos - SkPoint::Make(kBounds.centerX(), kBounds.centerY()); in updateDom()
282 pitcher->spd.fY = (kBounds.centerY() - pitcher->pos.fY) / t; in updatePaddleStrategy()
/external/skia/gm/
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));
Dlocalmatrixshader.cpp192 auto g1 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
198 auto g2 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
205 auto g3 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
211 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()
Dcroppedrects.cpp97 {kSrcImageClip.fLeft - kSrcImageClip.width(), kSrcImageClip.centerY()}, in onDraw()
98 {kSrcImageClip.fRight + 3 * kSrcImageClip.width(), kSrcImageClip.centerY()}); in onDraw()
/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/perfetto/ui/src/tracks/perf_samples_profile/
Dindex.ts93 private centerY = this.getHeight() / 2; property in PerfSamplesProfileTrack
124 this.centerY,
211 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/perfetto/ui/src/tracks/heap_profile/
Dindex.ts106 private centerY = this.getHeight() / 2; property in HeapProfileTrack
137 this.centerY,
222 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java791 float centerY = viewRect.centerY(); in configureTransform() local
793 bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY()); in configureTransform()
799 matrix.postScale(scale, scale, centerX, centerY); in configureTransform()
800 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
802 matrix.postRotate(180, centerX, centerY); in configureTransform()
/external/perfetto/ui/src/tracks/cpu_profile/
Dindex.ts94 private centerY = this.getHeight() / 2 + BAR_HEIGHT; property in CpuProfileTrack
124 this.centerY,
239 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DLineAndPointRenderer.java54 float centerY = rect.centerY(); in doDrawLegendIcon() local
65 canvas.drawPoint(centerX, centerY, formatter.getVertexPaint()); in doDrawLegendIcon()

12345