Need help.
I havea point "a"and two otherpoints:band cat the equaldistance from the pointa.How to drawtwocircle segmentsof the image,with"a"forthe center.
void display() { pushMatrix(); translate(positionX, positionY); // with translation, it's OK theSVG.translate(0, 0); theSVG.rotate(rotation); // ok, rotate with no error theSVG.scale(echelle); // ok, scale with no error theSVG.draw(); popMatrix();
}
}
Now, in the display() fonction, if I translate directly theSVG, it doesn't translate.
void display() { pushMatrix(); theSVG.translate(positionX, positionY); // no translation. theSVG.rotate(rotation); // ok, rotate with no error theSVG.scale(echelle); // ok, scale with no error theSVG.draw(); popMatrix();
}
So rotate & scaling work fine with RShape in class... But translate not... any ideas ?
Thanks in advance.