ofPath rotate

What exactly are the parameters for the rotate function of ofPath? All the documentation says is that it takes it two parameters(az and axis), and doesn’t elaborate on what those parameters are.

hi reona,

az is the angle you want to rotate by and axis defines which axis (x,y,z) you rotate around so:

  
  
myPath.rotate(10,ofVec3f(0,0,1));  
  

rotates the path 10 degrees around the z-axis