length＝(length/math.sqrt(2));