I am an undergrad trying to understand and use solid angle calculations:
I have a point source in R3 space (x_source, y_source, z_source) and a rectangle with given center (x_center, y_center, z_center), orientation (euler angles ZYX) and dimensions (width w, height h).
My goal is to calculate the solid angle under which the point source is visible. So far I dealt only with a case where the rectangle is facing directly towards the source by solving the integral $$ \int_{0}^{h} \int_{0}^{w} \frac{1}{(x-x_{source})^2+(y-y_{source})^2+(z-z_{source})^2} \,dx dy $$
Is this the right solution? And how to extend this to an arbitrary orientation of the rectangle?
Thanks!