The standard way to calculate the T-matrix is the null-field method, which relies on the Stratton–Chu equations. They basically state that the electromagnetic fields outside a given volume can be expressed as integrals over the surface enclosing the volume involving only the tangential components of the fields on the surface. If the observation point is located inside this volume, the integrals vanish.