public static Single setRectangleHeight(Single height) { if (height < 0) height = 0; return height; }