How do I scale a ofPolyline? or convert `ofPolyline` to `ofPath`?



I would like to scale up an ofPolyline that i’m getting from and ofxCv::contourFinder.
I see that ofPath has a scale method but ofPolyline does not.

What would be the best way to convert an ofPolyline to an ofPath and back, so that I can scale?


Yeah I’d also love to know!


Wouldn’t it be enough to do

    for(auto & vert : line) {
        vert *= 2.0f;

to scale it 2x? And if the idea is just to draw it larger, ofScale(2.0f) would work too, right?