I’m trying to make a path rotate spin clockwise in the center of the screen. but the axes used by the rotate function is centered on the top left of the screen. currently my solution is this
void ofApp::update(){
mainPath.translate(ofVec2f(-1*center.x,-1*center.y));//center is just a vector containing the center coords
mainPath.rotateDeg(1,ofVec3f(0,0,1));
mainPath.translate(center);
}
is there a different way of doing this without moving the path to 0,0. preferably changing where 0,0 is located?