36 lines
No EOL
1.1 KiB
Java
36 lines
No EOL
1.1 KiB
Java
package cube_demo;
|
|
|
|
import javax.media.j3d.BranchGroup;
|
|
import javax.media.j3d.Node;
|
|
import javax.media.j3d.Transform3D;
|
|
import javax.media.j3d.TransformGroup;
|
|
import javax.vecmath.Vector3d;
|
|
|
|
class Axes {
|
|
private BranchGroup mBrGrp = new BranchGroup();
|
|
|
|
public BranchGroup getBrGrp() {
|
|
return this.mBrGrp;
|
|
}
|
|
|
|
public Axes(double paramDouble1, double paramDouble2, double paramDouble3) {
|
|
Axis axis1 = new Axis(0);
|
|
Axis axis2 = new Axis(1);
|
|
Axis axis3 = new Axis(2);
|
|
Vector3d vector3d = new Vector3d(paramDouble1, paramDouble2, paramDouble3);
|
|
Transform3D transform3D = new Transform3D();
|
|
TransformGroup transformGroup = new TransformGroup();
|
|
transformGroup.addChild((Node)axis1.getBrGrp());
|
|
transformGroup.addChild((Node)axis2.getBrGrp());
|
|
transformGroup.addChild((Node)axis3.getBrGrp());
|
|
this.mBrGrp.addChild((Node)transformGroup);
|
|
transform3D.setTranslation(vector3d);
|
|
transformGroup.setTransform(transform3D);
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /opt/SpaceControl/Cube_Demo.jar!/cube_demo/Axes.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.2.1
|
|
*/ |