A rigorous approach to attitude and sphere reconstitution in Hipparcos project