What are the horizontal and vertical components of a cat's displacement when it has climbed 5m directly up a tree?

Has it moved horizontally when it gors directly vertical?