Vector2D array points

Is it possible to put a bunch of points in a Vector2D array, and only connected specific ones?

IE Add points 0,1,2,3,4 to the array, and connect 0 to 3 and 2 to 4?

Could you be more specific on what are you trying to achieve?

An array of Vector2Ds aren’t "connected’ to anything. If you mean a Curve or Path2D then no, you cannot have separate lines without making more than one Curve or Path2D.

Sorry, I thought I mentioned the Line2D of it all, that must have been in a different post, but you answered my question, thank you!