Estimation of Attitude from a Single-Direction Sensor