private int getPos(int posInArray) {

		pos = posInArray + 1;
		int dis;
		// mΪ
		if (m % 2 == 1) {

			if (pos <= (m + 1) / 2) {
				dis = (int) (6 * pos / (m + 1.0) - 3);
			} else {
				dis = (int) ((6 * pos - 6) / (m - 1.0) - 3);
			}

		}
		// mΪż
		else {

			if (pos <= m / 2) {
				dis = (int) ((4 * pos - 4) / (m - 2.0) - 3);
			} else {
				dis = (int) ((4 * pos - 8) / (m - 2.0) - 1);
			}
		}
		return dis * HEIGHT*2;
	}