摘要 |
A movement direction calculating apparatus including a processor executing instructions for: obtaining acceleration data output from the multi-axis acceleration sensor during each of successive intervals; determining a movement period as a period during a movement of the input device wherein the determination is based on the obtained acceleration data; calculating a plurality of difference vectors each representing a difference between a pair of acceleration vectors corresponding to acceleration data, wherein each of the acceleration vectors is a vector whose components are acceleration values with respect to a plurality of axes of acceleration values corresponding to axes indicated by the acceleration data; summing the difference vectors to calculate a direction vector, wherein each of the difference vectors is assigned a weight depending on a magnitude of the difference vector, and designating as the movement direction a direction indicated by the direction vector. |