Lines Matching full:normalx
83 var normalX = -(edge.endY - edge.startY);
86 var normalLength = Math.sqrt((normalX * normalX) + (normalY * normalY));
87 normalX /= normalLength;
90 edge.normalX = normalX;
93 if (normalX == 0 && normalY == 0) {
97 var normalLength2 = Math.sqrt((normalX * normalX) + (normalY * normalY));
158 Math.abs((edge.centerX + edge.normalX) - tile.centerX)) {
159 edge.normalX *= -1;
165 edge.normalX *= -1;
178 Math.floor(edge.endY) + ":" + edge.normalX + "," + edge.normalY +
239 var normalX = Math.round(tile.centerX +
240 (edge.normalX * (tileSizeX / 2)));
253 tileCenterArray[4] = new Array(offsetX + normalX - 1,
255 tileCenterArray[5] = new Array(offsetX + normalX + 1,