摘要 |
An example information processing device calculates an attitude of an input unit having a magnetic sensor. The information processing device repeatedly obtains detected magnetic vectors detected by the magnetic sensor. The information processing device stores the detected magnetic vectors in a storage unit where each detected magnetic vector is classified based on a direction from a reference position to the end point position of the detected magnetic vector. The information processing device repeatedly estimates a center position of a spherical body having a curved surface which is estimated based on the end point positions of detected magnetic vectors obtained by extracting, from among the classified detected magnetic vectors, at least one detected magnetic vector for each class. The attitude of the input unit is calculated based on a direction vector representing a direction from the center position to the end point position of the detected magnetic vector. |