Examples of EyeNode


Examples of ca.eandb.jmist.framework.path.EyeNode

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Lens#rayAt(ca.eandb.jmist.math.Point2, ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
   */
  public final ScatteredRay rayAt(Point2 p, WavelengthPacket lambda, Random rnd) {
    PathInfo path = new PathInfo(lambda);
    EyeNode node = sample(p, path, rnd.next(), rnd.next(), rnd.next());
    return node.sample(rnd.next(), rnd.next(), rnd.next());
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.path.EyeNode

  /* (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
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.