Wave-particle duality in classical mechanics