Scattering Geometry

Finding Q values - Different scattering geometries ( saxs, wads, and gisaxs)
These functions are identical.   Please refactor them so that the code only appears once.