Home
last modified time | relevance | path

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

12

/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()
DOrbitalMagnetComponent.java67 private void applyMagnetism(GameObject target, float centerX, float centerY, float timeDelta) { in applyMagnetism() argument
68 mCenter.set(centerX, centerY); in applyMagnetism()
DBackgroundCollisionComponent.java325 int left, int right, float centerY, Vector2 hitPoint, Vector2 hitNormal, in sweepHorizontal() argument
333 mTestPointStart.y = (centerY); in sweepHorizontal()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCanvas.java171 public float centerY; field in ShadowCanvas.CirclePaintHistoryEvent
174 private CirclePaintHistoryEvent(float centerX, float centerY, float radius, Paint paint) { in CirclePaintHistoryEvent() argument
177 this.centerY = centerY; in CirclePaintHistoryEvent()
/external/skia/gm/
Dfilltypes.cpp46 canvas->translate(r.centerX(), r.centerY()); in showPath()
48 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
Dfilltypespersp.cpp45 canvas->translate(r.centerX(), r.centerY()); in showPath()
47 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
Dimagefiltersbase.cpp96 canvas->drawCircle(r.centerX(), r.centerY(), r.width()*2/5, paint); in draw_path()
106 canvas->drawText("Text", 4, r.centerX(), r.centerY(), paint); in draw_text()
Dpathfill.cpp203 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw()
204 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
Dtechtalk1.cpp198 show_fan(canvas, dst, r.centerX(), r.centerY()); in draw_oval()
205 canvas->drawCircle(r.centerX(), r.centerY(), 3, p); in draw_oval()
/external/skia/tests/
DInfRectTest.cpp35 gData[index].fRect.centerY() == gData[index].fCenter.y()); in test_center()
45 int cy = r.centerY(); in test_center()
DPathTest.cpp983 static const SkPoint kCircleC = {kBaseRect.centerX(), kBaseRect.centerY()}; in test_conservativelyContains()
1049 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.centerY(), kBaseRect.width(), SkScalar(1)), in test_conservativelyContains()
1058 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.centerY(), in test_conservativelyContains()
/external/webkit/Source/WebCore/rendering/
DRenderImage.cpp284 int centerY = (usableHeight - image->height()) / 2; in paintReplaced() local
285 if (centerY < 0) in paintReplaced()
286 centerY = 0; in paintReplaced()
288 imageY = topBorder + topPad + centerY + 1; in paintReplaced()
DRenderThemeSafari.cpp818 float centerY = bounds.y() + bounds.height() / 2.0f; in paintMenuListButton() local
832 arrow[0] = FloatPoint(leftEdge, centerY - arrowHeight / 2.0f); in paintMenuListButton()
833 arrow[1] = FloatPoint(leftEdge + arrowWidth, centerY - arrowHeight / 2.0f); in paintMenuListButton()
834 arrow[2] = FloatPoint(leftEdge + arrowWidth / 2.0f, centerY + arrowHeight / 2.0f); in paintMenuListButton()
DRenderThemeMac.mm1096 float centerY = bounds.y() + bounds.height() / 2.0f;
1111 arrow1[0] = FloatPoint(leftEdge, centerY - spaceBetweenArrows / 2.0f);
1112 arrow1[1] = FloatPoint(leftEdge + arrowWidth, centerY - spaceBetweenArrows / 2.0f);
1113 …arrow1[2] = FloatPoint(leftEdge + arrowWidth / 2.0f, centerY - spaceBetweenArrows / 2.0f - arrowHe…
1119 arrow2[0] = FloatPoint(leftEdge, centerY + spaceBetweenArrows / 2.0f);
1120 arrow2[1] = FloatPoint(leftEdge + arrowWidth, centerY + spaceBetweenArrows / 2.0f);
1121 …arrow2[2] = FloatPoint(leftEdge + arrowWidth / 2.0f, centerY + spaceBetweenArrows / 2.0f + arrowHe…
/external/jmonkeyengine/engine/src/niftygui/com/jme3/niftygui/
DRenderDeviceJme.java258 int centerX, int centerY) { in renderImage() argument
291 float y0 = centerY + (y - centerY) * scale; in renderImage()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/
DDrawUtils.java90 int centerY = y + (height - imageBounds.height) / 2; in drawImageCHCV() local
91 gc.drawImage(image, x + centerX, centerY); in drawImageCHCV()
/external/skia/include/core/
DSkRect.h90 int centerY() const { return (fBottom + fTop) >> 1; } in centerY() function
448 SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } in centerY() function
/external/webkit/Source/WebCore/platform/graphics/wince/
DGraphicsContextWinCE.cpp497 int centerY = origRect.y() + origRect.height() / 2; in TransparentLayerDC() local
499 m_rotation.m_preShiftY = -centerY; in TransparentLayerDC()
501 m_rotation.m_postShiftY = centerY; in TransparentLayerDC()
804 int centerY = stableRound(trRect.y() + b); in strokeArc() local
815 startY = centerY - startY; in strokeArc()
817 endY = centerY - endY; in strokeArc()
/external/skia/src/core/
DSkRRect.cpp141 canonicalPt.set(x - fRect.centerX(), y - fRect.centerY()); in contains()
DSkPath.cpp1148 SkScalar cy = oval.centerY(); in addOval()
1219 pts[0].set(oval.fRight, oval.centerY()); in build_arc_points()
1263 matrix.postTranslate(oval.centerX(), oval.centerY()); in build_arc_points()
/external/webkit/Source/WebKit/qt/declarative/
Dqdeclarativewebview_p.h230 void zoomTo(qreal zoom, int centerX, int centerY);
/external/skia/legacy/include/core/
DSkRect.h373 SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } in centerY() function
/external/webkit/Source/WebCore/css/
DCSSParser.cpp5382 RefPtr<CSSValue> centerY; in parseRadialGradient() local
5384 parseFillPosition(args, centerX, centerY); in parseRadialGradient()
5389 if (centerX || centerY) { in parseRadialGradient()
5400 ASSERT(!centerY || centerY->isPrimitiveValue()); in parseRadialGradient()
5405 result->setFirstY(static_cast<CSSPrimitiveValue*>(centerY.get())); in parseRadialGradient()
5406 result->setSecondY(static_cast<CSSPrimitiveValue*>(centerY.get())); in parseRadialGradient()
/external/skia/legacy/src/core/
DSkPath.cpp736 SkScalar cy = oval.centerY(); in addOval()
842 matrix.postTranslate(oval.centerX(), oval.centerY()); in build_arc_points()

12