An information processing program executed by a computer of an information processing apparatus capable of receiving an input performed with a pointing device, the information processing program causing the computer to operate as: object positioning means for positioning a three-dimensional object in a virtual three-dimensional space; three-dimensional image displaying means for displaying a three-dimensional image obtained by capturing the virtual three-dimensional space with a virtual camera, on a screen; first straight line calculation means for calculating a first straight line on the basis of predetermined two points in the three-dimensional object; second straight line calculation means (S25, S29) for calculating a second straight line orthogonal to the first straight line; rotation axis selection means (S27, S30) for selecting either one of the first straight line and the second straight line as a rotation axis on the basis of an input performed with the pointing device; and first object rotation means for rotating the three-dimensional object about the selected rotation axis, wherein the second straight line calculation means includes: third straight line calculation means for calculating a third straight line which is a straight line obtained by projecting the first straight line onto a predetermined plane; and fourth straight line calculation means for calculating a fourth straight line which is a straight line orthogonal to the third straight line on the predetermined plane, and the second straight line calculation means calculates, as the second straight line, a straight line obtained by translating the fourth straight line from the predetermined plane to the three-dimensional object within the virtual three-dimensional space, and wherein the information processing program further causes the computer to operate as operation vector calculation means for calculating, on the basis of an input performed with the pointing device, a vector for the input on the predetermined plane, and the rotation axis selection means projects the vector calculated by the operation vector calculation means, to at least one of the third straight line and the fourth straight line, and selects one of the first straight line and the second straight line on the basis of a length of the projected vector on the straight line. object positioning means for positioning a three-dimensional object in a virtual three-dimensional space; three-dimensional image displaying means for displaying a three-dimensional image obtained by capturing the virtual three-dimensional space with a virtual camera, on a screen; first straight line calculation means for calculating a first straight line on the basis of predetermined two points in the three-dimensional object; second straight line calculation means (S25, S29) for calculating a second straight line orthogonal to the first straight line; rotation axis selection means (S27, S30) for selecting either one of the first straight line and the second straight line as a rotation axis on the basis of an input performed with the pointing device; and first object rotation means for rotating the three-dimensional object about the selected rotation axis, wherein the second straight line calculation means includes: third straight line calculation means for calculating a third straight line which is a straight line obtained by projecting the first straight line onto a predetermined plane; and fourth straight line calculation means for calculating a fourth straight line which is a straight line orthogonal to the third straight line on the predetermined plane, and third straight line calculation means for calculating a third straight line which is a straight line obtained by projecting the first straight line onto a predetermined plane; and fourth straight line calculation means for calculating a fourth straight line which is a straight line orthogonal to the third straight line on the predetermined plane, and the second straight line calculation means calculates, as the second straight line, a straight line obtained by translating the fourth straight line from the predetermined plane to the three-dimensional object within the virtual three-dimensional space, and wherein the information processing program further causes the computer to operate as operation vector calculation means for calculating, on the basis of an input performed with the pointing device, a vector for the input on the predetermined plane, and the rotation axis selection means projects the vector calculated by the operation vector calculation means, to at least one of the third straight line and the fourth straight line, and selects one of the first straight line and the second straight line on the basis of a length of the projected vector on the straight line.