The transformation corresponds to that between the coordinates (ra,dec) and (ecl_lon,ecl_lat) in the Gaia source catalogue (DR2).
(ra,dec)
(ecl_lon,ecl_lat)
icrsToEcl(polarXYZ(ra, dec, distance))