Determining 3-D motion and structure of a rigid body using the spherical projection