We are about to switch to a new forum software. Until then we have removed the registration on this forum.
for example rotate with this line: (0,0,300,300)
See the rotate() function.
The 2d Transformations tutorial is probably also relevant.
i said in 3D mode ..... i mean in 3D mode it only can rotate in X Y Z three direction can the rotate main axis be set by my self??? for examle set (0,0,300,300) as axis
You mean like this?
size(600, 600, P3D); float angle=1; rotate(angle, 300, 300, 0); rect(100, 100, 100, 100);
thanks,but what's 300,300,0?point?and that's mean the line across the (0,0,0) and (300,300,0)?
Yes, you are defining an axis between 0,0,0 and 300, 300, 0, and then rotating around that axis.
Answers
See the rotate() function.
The 2d Transformations tutorial is probably also relevant.
i said in 3D mode ..... i mean in 3D mode it only can rotate in X Y Z three direction can the rotate main axis be set by my self??? for examle set (0,0,300,300) as axis
You mean like this?
thanks,but what's 300,300,0?point?and that's mean the line across the (0,0,0) and (300,300,0)?
Yes, you are defining an axis between 0,0,0 and 300, 300, 0, and then rotating around that axis.