Hello
I try to rotate a line around a axis. This axis is parallel to the Z axis, but
is placed in the
coordinate x=10 and y=15. The line begins in this point (x=10,y=15,z=0) (like a
clock)
My aplication is:
public void actionPerformed(ActionEvent e ) {
Transform3D t = new Transform3D();
if (e.getSource()==Action){
angle += Math.toRadians( 10 );
Transform3D temp = new Transform3D();
t.set (new Vector3f(10,15,0));
temp.rotX(Math.PI/8.0d);
t.mul(temp);
temp.rotY(-(Math.PI/4.0d));
t.mul(temp);
temp.setRotation(new AxisAngle4d(0,0,1,angle));
t.mul(temp);
t.setScale(0.005);
BrazoTrans[0].setTransform(t);
}
}
How can i do this?
All of the proofs that I do, the line rotate around the Z axis placed in the
coordinates x=y=z=0.
Thanks in advance for any help
Oscar Saez
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/