Package javax.vecmath

Examples of javax.vecmath.Matrix4d


/*  97 */     MultiTransformGroup mtg = this.universe.getViewingPlatform().getMultiTransformGroup();
/*  98 */     int mtgSize = mtg.getNumTransforms();
/*  99 */     out.writeInt(mtgSize);
/*     */
/* 102 */     Transform3D trans = new Transform3D();
/* 103 */     Matrix4d matrix = new Matrix4d();
/* 104 */     for (int i = 0; i < mtgSize; i++) {
/* 105 */       TransformGroup tg = mtg.getTransformGroup(i);
/* 106 */       tg.getTransform(trans);
/* 107 */       trans.get(matrix);
/* 108 */       this.control.writeMatrix4d(out, matrix);
View Full Code Here


/*     */     else {
/* 122 */       this.universe = new ConfiguredUniverse(ConfiguredUniverse.getConfigURL(), mtgSize);
/*     */     }
/* 124 */     MultiTransformGroup mtg = this.universe.getViewingPlatform().getMultiTransformGroup();
/*     */
/* 127 */     Matrix4d matrix = new Matrix4d();
/* 128 */     for (int i = 0; i < mtgSize; i++) {
/* 129 */       TransformGroup tg = mtg.getTransformGroup(i);
/* 130 */       matrix = this.control.readMatrix4d(in);
/* 131 */       Transform3D trans = new Transform3D(matrix);
/* 132 */       tg.setTransform(trans);
View Full Code Here

/* 246 */           this.transformX.rotX(this.x_angle);
/* 247 */           this.transformY.rotY(this.y_angle);
/*     */
/* 249 */           this.transformGroup.getTransform(this.currXform);
/*     */
/* 251 */           Matrix4d mat = new Matrix4d();
/*     */
/* 253 */           this.currXform.get(mat);
/*     */
/* 256 */           this.currXform.setTranslation(new Vector3d(0.0D, 0.0D, 0.0D));
/* 257 */           if (this.invert) {
View Full Code Here

/*     */   public Matrix4d readMatrix4d(DataInput in) throws IOException {
/* 772 */     double[] elements = new double[16];
/* 773 */     for (int c = 0; c < 16; c++) {
/* 774 */       elements[c] = in.readDouble();
/*     */     }
/* 776 */     return new Matrix4d(elements);
/*     */   }
View Full Code Here

/* 831 */     tuple.w = in.readFloat();
/* 832 */     return tuple;
/*     */   }
/*     */
/*     */   public void writeTransform3D(DataOutput out, Transform3D tran) throws IOException {
/* 836 */     Matrix4d matrix = new Matrix4d();
/* 837 */     tran.get(matrix);
/* 838 */     writeMatrix4d(out, matrix);
/*     */   }
View Full Code Here

/*     */
/*     */   public void writeObject(DataOutput out) throws IOException {
/*  62 */     super.writeObject(out);
/*  63 */     TextureAttributes attr = (TextureAttributes)this.node;
/*  64 */     Color4f clr = new Color4f();
/*  65 */     Matrix4d mat = new Matrix4d();
/*  66 */     Transform3D trans = new Transform3D();
/*  67 */     int tableComponents = attr.getNumTextureColorTableComponents();
/*  68 */     int tableSize = attr.getTextureColorTableSize();
/*  69 */     int[][] colorTable = new int[tableComponents][tableSize];
/*     */
View Full Code Here

/* 107 */       for (int j = 0; j < tableSize; j++)
/* 108 */         colorTable[i][j] = in.readInt();
/* 109 */     if (tableComponents != 0)
/* 110 */       attr.setTextureColorTable(colorTable);
/* 111 */     attr.setTextureMode(in.readInt());
/* 112 */     Matrix4d mat = this.control.readMatrix4d(in);
/* 113 */     Transform3D trans = new Transform3D(mat);
/* 114 */     attr.setTextureTransform(trans);
/*     */
/* 116 */     attr.setCombineRgbMode(in.readInt());
/* 117 */     attr.setCombineAlphaMode(in.readInt());
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public final void multiply(final Matrix matrix) {
        final Matrix4d m;
        if (matrix instanceof Matrix4d) {
            m = (Matrix4d) matrix;
        } else {
            m = new Matrix4(matrix);
        }
View Full Code Here

TOP

Related Classes of javax.vecmath.Matrix4d

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.