ofVec2f to glm::vec2 rotation?

Hi. How do I convert ofVec2f to glm::vec2 ?
Actually I want do convert this code:

ofVec2f velocity;
float angle;

angle = ofRandomf() * TWO_PI;
velocity.rotate(angle)

the answer from @edapx to this post can help :

1 Like

I decided to use ofVec2f instead of glm (seems too complicated).