These mathematical operations should be avoided if `stroke.weight` is an invalid value (0, negative).