Patent ID: 7877224

Claim:
A computer-readable nontransitory physical storage medium having stored thereon an inclination calculation program executable by a computer of an inclination calculation apparatus for sequentially calculating an inclination of an input device operable in terms of a posture thereof, wherein the input device includes an acceleration detector for detecting an acceleration in at least two axial directions and an imaging element for taking an image of two imaging targets, the inclination calculation program causing the computer to execute: an image information processing step of sequentially calculating first inclination information representing an inclination of the input device from positions of the two imaging targets in a taken image obtained by the imaging element; an acceleration information processing step of sequentially calculating second inclination information representing an inclination of the input device from an acceleration detected by the acceleration detector; and an inclination calculation step of calculating an inclination of the input device using the first inclination information and the second inclination information, wherein in the inclination calculation step, the computer selects one of a calculation method using the first inclination information and a calculation method using the second inclination information, and calculates the inclination of the input device by the selected calculation method.