static DoubleRange shiftDoubleRange(DoubleRange r, double shift) { ret r == null ?: DoubleRange(r.start+shift, r.end+shift); }