Mandibular movements in three dimensions