While studying a huge earthquake that struck Niigata , Japan , in 1964 , Dr. Aki devised a calculation that considers the area affected by an earthquake , the rigidity of the underlying rock and the distance the rocks slip .