Lines Matching refs:centerX
108 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,
249 tileCenterArray[2] = new Array(offsetX + tile.centerX + 1,
251 tileCenterArray[3] = new Array(offsetX + tile.centerX + 1,
257 tileCenterArray[6] = new Array(offsetX + tile.centerX,
264 centerArray[0] = new Array(offsetX + edge.centerX - 1,
266 centerArray[1] = new Array(offsetX + edge.centerX - 1,
268 centerArray[2] = new Array(offsetX + edge.centerX + 1,
270 centerArray[3] = new Array(offsetX + edge.centerX + 1,