摘要 |
<P>PROBLEM TO BE SOLVED: To provide an information processing program and apparatus, allowing accurate discrimination of a direction in which an input device is shaken by use of an acceleration having occurred in the input device. <P>SOLUTION: A data acquisition means repeatedly acquires acceleration data. An acceleration vector generation means generates a first acceleration vector based on first acceleration data acquired by the data acquisition means, and generates a second acceleration vector based on second acceleration data sequentially acquired by the data acquisition means to the first acceleration data. A cross product direction calculation means calculates a direction of across product between the first acceleration vector and the second acceleration vector. A swing direction identification means identifies a swing direction of the input device based on the direction of the cross product. <P>COPYRIGHT: (C)2011,JPO&INPIT |