Package javax.vecmath

Examples of javax.vecmath.Matrix4f.transform()


        // pt4 * m4
        // [a b c d] * m4
        if (pt4 != null) {
          Matrix4f m4b = new Matrix4f((Matrix4f) x2.value);
          m4b.transpose();
          m4b.transform(pt4);
          if (x1.tok == Token.varray)
            return addX(ScriptVariable.getVariable(new float[] { pt4.x, pt4.y,
                pt4.z, pt4.w }));
          return addX(pt4);
        }
View Full Code Here


          return addX(m2);
        }
      case Token.matrix4f:
        Matrix4f m4 = (Matrix4f) x1.value;
        if (pt != null) {
          m4.transform(pt);
          if (x2.tok == Token.varray)
            return addX(ScriptVariable.getVariable(new float[] { pt.x, pt.y,
                pt.z }));
          return addX(pt);
        }
View Full Code Here

            return addX(ScriptVariable.getVariable(new float[] { pt.x, pt.y,
                pt.z }));
          return addX(pt);
        }
        if (pt4 != null) {
          m4.transform(pt4);
          if (x2.tok == Token.varray)
            return addX(ScriptVariable.getVariable(new float[] { pt4.x, pt4.y,
                pt4.z, pt4.w }));
          return addX(pt4);
        }
View Full Code Here

          if (tx != 0 || ty != 0 || tz != 0 || cartesians.length == 0)
            continue;
          for (pt = 0; pt < noSymmetryCount; pt++) {
            Atom atom = atoms[iAtomFirst + pt];
            Point3f c = new Point3f(atom);
            op.transform(c);
            symmetry.toCartesian(c, false);
            if (doPackUnitCell) {
              symmetry.toUnitCell(c, ptOffset);
              atom.set(c);
              symmetry.toFractional(atom, false);
View Full Code Here

          Atom atom1;
          if (addBonds)
            atomMap[atomSite] = atomCount;
            atom1 = newCloneAtom(atoms[iAtom]);
            atom1.atomSite = atomSite;
          mat.transform(atom1);
          atom1.bsSymmetry = BitSetUtil.setBit(i);
          if (addBonds) {
            // Clone bonds
            for (int bondNum = bondIndex0; bondNum < bondCount0; bondNum++) {
              Bond bond = bonds[bondNum];
View Full Code Here

/* 201 */     triRef.initPnts(20);
/* 202 */     for (int i = i1; i < i2; i++) {
/* 203 */       int ind = triRef.loops[i];
/* 204 */       int ind1 = ind;
/* 205 */       int j1 = triRef.fetchData(ind1);
/* 206 */       matrix.transform(triRef.vertices[j1], vtx);
/* 207 */       j1 = triRef.storePoint(vtx.x, vtx.y);
/* 208 */       triRef.updateIndex(ind1, j1);
/* 209 */       ind1 = triRef.fetchNextData(ind1);
/* 210 */       j1 = triRef.fetchData(ind1);
/* 211 */       while (ind1 != ind) {
View Full Code Here

/* 207 */       j1 = triRef.storePoint(vtx.x, vtx.y);
/* 208 */       triRef.updateIndex(ind1, j1);
/* 209 */       ind1 = triRef.fetchNextData(ind1);
/* 210 */       j1 = triRef.fetchData(ind1);
/* 211 */       while (ind1 != ind) {
/* 212 */         matrix.transform(triRef.vertices[j1], vtx);
/* 213 */         j1 = triRef.storePoint(vtx.x, vtx.y);
/* 214 */         triRef.updateIndex(ind1, j1);
/* 215 */         ind1 = triRef.fetchNextData(ind1);
/* 216 */         j1 = triRef.fetchData(ind1);
/*     */       }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.