|
Hi,
You can use AxisAngle4f (or AxisAngle4d) to
construct a rotation about an arbitrary axis. e.g. to get a rotation of 45
degrees about the axis (1,1,0) you could use the following:
float myAngle = Math.PI / 4;
Vector3f myAxis = new Vector3f(1, 1,
0);
AxisAngle4f rotation = new AxisAngle4f(myAxis,
myAngle);
Transform3D rotTransform = new
Transform3D();
rotTransform.set(rotation);
Hope this helps,
Ewan
|
- [JAVA3D] How to chage rotational axis using rotX, rotY, rotX.... bh ahn
- Ewan Borland
