code: function toPoint(p, s, d) {
        return [
          p[0] + s * d[0],
          p[1] + s * d[1]
        ];
      }
docs: We also define a function to convert back to regular point form: /* eslint-disable arrow-body-style