publish
This commit is contained in:
parent
f38388896d
commit
2f62a1a123
67 changed files with 4545 additions and 0 deletions
36
Cube_Demo/cube_demo/Axes.java
Normal file
36
Cube_Demo/cube_demo/Axes.java
Normal file
|
@ -0,0 +1,36 @@
|
|||
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
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue