Ray casting algorithm proof(Point in polygon problem)

Can anyone provide me proof of Ray casting algorithm : Point in polygon - Wikipedia

Thanks.