Package ca.eandb.jmist.framework.path

Examples of ca.eandb.jmist.framework.path.LightNode.sample()


   * @see ca.eandb.jmist.framework.Light#emit(ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random)
   */
  public final ScatteredRay emit(WavelengthPacket lambda, Random rnd) {
    PathInfo path = new PathInfo(lambda);
    LightNode node = sample(path, rnd.next(), rnd.next(), rnd.next());
    return node.sample(rnd.next(), rnd.next(), rnd.next());
  }

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Light#sample(ca.eandb.jmist.framework.path.PathInfo, double, double, double)
   */
 
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.