Modified linear() to handle non-scalar length one coords.