Examples of toCartesian()


Examples of ca.eandb.jmist.math.SphericalCoordinates.toCartesian()

      do {
        SphericalCoordinates perturb = new SphericalCoordinates(
            Math.acos(Math.pow(1.0 - rnd.next(),
                1.0 / (specularity + 1.0))), 2.0 * Math.PI
                * rnd.next());
        w = perturb.toCartesian(basis);
      } while ((w.dot(N) > 0.0) != toSide);
    }

    return w;
  }
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.toCartesian()

      Basis3 basis = Basis3.fromW(w);
      do {
        SphericalCoordinates perturb = new SphericalCoordinates(
            Math.acos(Math.pow(1.0 - ru, 1.0 / (specularity + 1.0))),
            2.0 * Math.PI * rv);
        w = perturb.toCartesian(basis);
      } while ((w.dot(N) > 0.0) != toSide);
    }

    return new ScatteredRay(new Ray3(x.getPosition(), w),
        lambda.getColorModel().getWhite(lambda),
View Full Code Here

Examples of org.jmol.api.SymmetryInterface.toCartesian()

        unitcell.setMinMaxLatticeParameters(minXYZ, maxXYZ);
        for (int tx = minXYZ.x; tx < maxXYZ.x; tx++)
          for (int ty = minXYZ.y; ty < maxXYZ.y; ty++)
            for (int tz = minXYZ.z; tz < maxXYZ.z; tz++) {
              latticeOffset.set(tx, ty, tz);
              unitcell.toCartesian(latticeOffset, false);
              for (int i = vertexCount; --i >= 0;) {
                vTemp.set(vertices[i]);
                vTemp.add(latticeOffset);
                viewer.transformPoint(vTemp, screens[i]);
              }
View Full Code Here

Examples of org.jmol.util.SimpleUnitCell.toCartesian()

    */              
       
      vectors[0] = new Point3f(1, 0, 0);
    vectors[1] = new Point3f(0, 1, 0);
    vectors[2] = new Point3f(0, 0, 1);
    unitCell.toCartesian(vectors[0], false);
    unitCell.toCartesian(vectors[1], false);
    unitCell.toCartesian(vectors[2], false);

    Logger.info("Jmol unit cell vectors:");
    Logger.info("    a: " + vectors[0]);
View Full Code Here

Examples of org.jmol.util.SimpleUnitCell.toCartesian()

       
      vectors[0] = new Point3f(1, 0, 0);
    vectors[1] = new Point3f(0, 1, 0);
    vectors[2] = new Point3f(0, 0, 1);
    unitCell.toCartesian(vectors[0], false);
    unitCell.toCartesian(vectors[1], false);
    unitCell.toCartesian(vectors[2], false);

    Logger.info("Jmol unit cell vectors:");
    Logger.info("    a: " + vectors[0]);
    Logger.info("    b: " + vectors[1]);
View Full Code Here

Examples of org.jmol.util.SimpleUnitCell.toCartesian()

      vectors[0] = new Point3f(1, 0, 0);
    vectors[1] = new Point3f(0, 1, 0);
    vectors[2] = new Point3f(0, 0, 1);
    unitCell.toCartesian(vectors[0], false);
    unitCell.toCartesian(vectors[1], false);
    unitCell.toCartesian(vectors[2], false);

    Logger.info("Jmol unit cell vectors:");
    Logger.info("    a: " + vectors[0]);
    Logger.info("    b: " + vectors[1]);
    Logger.info("    c: " + vectors[2]);
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.