double RealTransformY(double oldx,double oldy) {
	double y;
	switch (rot) {
	default:
	case 0:	y = oldy; break;
	case 1:	y = oldx; break;
	case 2:	y = -oldy; break;
	case 3:	y = -oldx; break;
	case 4:	y = oldy; break;
	case 5:	y = -oldx; break;
	case 6:	y = -oldy; break;
	case 7:	y = oldx; break;
	}
	return y*scale + orgy;
    }