is there a way to generate a Curve Vector from an array of coordinates in the world space?

sorry I explained myself badly, give me one moment