function fromRotation(out, q) {
    out[0] = q[0];
    out[1] = q[1];
    out[2] = q[2];
    out[3] = q[3];
    out[4] = 0;
    out[5] = 0;
    out[6] = 0;
    out[7] = 0;
    return out;
  }
Creates a dual quat from a quaternion

@param {ReadonlyQuat2} dual quaternion receiving operation result
@param {ReadonlyQuat} q the quaternion
@returns {quat2} dual quaternion receiving operation result
@function