Package ca.eandb.jmist.math

Examples of ca.eandb.jmist.math.AffineMatrix3


   * <code>LinearMatrix3</code> to this <code>AffineTransformation3</code>.
   * @param T The <code>LinearMatrix3</code> representing the transformation
   *     to be applied.
   */
  protected final void applyTransformation(LinearMatrix3 T) {
    this.applyTransformation(new AffineMatrix3(T));
  }
View Full Code Here


      TransformableGeometry segment = new TransformableGeometry(
          new TaperedCylinderGeometry(h1, r1, length + h2, r2, false));

      Vector3 v = previous.center().vectorTo(sphere.center());
      Basis3 basis = Basis3.fromV(v);
      AffineMatrix3 T = AffineMatrix3.fromColumns(basis.u(), basis.v(), basis.w(), previous.center());

      segment.transform(T);
      geometry.addChild(segment);
    }
    geometry.addChild(new SphereGeometry(sphere));
View Full Code Here

    return super.visibility(ray);
  }

  private void initialize() {
    if (!ready) {
      AffineMatrix3 matrix = t.apply(AffineMatrix3.IDENTITY);
      scaleFactor = Math.cbrt(matrix.determinant());

      Vector3 u = t.apply(Vector3.I).unit();
      Vector3 v = t.apply(Vector3.J).unit();
      Vector3 w = t.apply(Vector3.K).unit();
View Full Code Here

   * @param Tinv
   *            The inverse of the <code>LinearMatrix3</code> that is being
   *            applied.
   */
  private void applyInverseTransformation(LinearMatrix3 Tinv) {
    this.applyInverseTransformation(new AffineMatrix3(Tinv));
  }
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Lens#sample(ca.eandb.jmist.math.Point2, ca.eandb.jmist.framework.path.PathInfo, ca.eandb.jmist.framework.Random)
   */
  public EyeNode sample(Point2 p, PathInfo pathInfo, double ru, double rv, double rj) {
    EyeNode eye = inner.sample(p, pathInfo, ru, rv, rj);
    AffineMatrix3 ltow = view.apply(AffineMatrix3.IDENTITY);
    AffineMatrix3 wtol = view.applyInverse(AffineMatrix3.IDENTITY);
    return new TransformedEyeNode(eye, ltow, wtol);
  }
View Full Code Here

      e.stretch(scale[0], scale[1], scale[2]);
      e.rotateZ(Math.toRadians(angle));

      e.translate(insertionPoint.vectorFromOrigin());
      Basis3 basis = DxfUtil.getBasisFromArbitraryAxis(extrusionDir);
      AffineMatrix3 T = AffineMatrix3.fromColumns(basis.u(), basis.v(), basis.w());
      e.transform(T);


      if (state.currentSection.equals("ENTITIES")) {
        state.root.addChild(block.root instanceof BoundingIntervalHierarchy ? new CollapseSceneElement(e) : e);
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.math.AffineMatrix3

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.