A collision is elastic if the absolute value of the velocity just before and just after the collision is the same, for every direction of the motion.