I have been reading a lot about ABCD matrices that are used for ray tracing. I can calculate the output offset $r_{o}$ (with respect to the optical axis) and the angle $\theta$ of the ray by
$$ \begin{pmatrix} r_{o} \\ \theta_{o} \end{pmatrix} = \begin{pmatrix} A & B \\ C & D \end{pmatrix} \begin{pmatrix} r_{i} \\ \theta_{i} \end{pmatrix} $$
If I want to calculate the beam width $\omega$ of a Gaussian beam I can describe it as the complex beam parameter
$$ \frac{1}{q} = \frac{1}{R} - \frac{i \lambda_{0}}{\pi n \omega^{2}} $$
In theory, I should be able to multiply the transfer matrix with $q_{i}$ and get the resulting $q_{o}$, which I can then split into real and imaginary parts to get $\omega$. However, I don't see any reference to the offset $r_{i}$ in $q$ - does this mean that I can only calculate the beam width if the beam passes through the optical axis of the elements? Or am I missing some component of $q$ that refers to the possibility of the beam being off-axis?
Edit: This is the kind of optical system I am talking about.