Tools to calculate the transit of complex astronomical objects (oblate planets, rings, etc.) over a star