How to get a vector for each point at curve

This old post discusses a similar issue