Package jpbrt.core

Examples of jpbrt.core.Ray.eval()


            if (thit > ray.maxt)
                return result;
        }
       
        // compute sphere hit position and phi
        Point phit = ray.eval(thit);
        if (phit.x == 0.0 && phit.y == 0.0)
            phit.x = 1e-5 * radius;
        double phi = Math.atan2(phit.y, phit.x);
        if (phi < 0.0)
            phi += 2 * Math.PI;
 
View Full Code Here


            if (thit == t[1] || t[1] > ray.maxt)
                return result;
            thit = t[1];
           
            // compute sphere hit position and phi
            phit = ray.eval(thit);
            if (phit.x == 0.0 && phit.y == 0.0)
                phit.x = 1e-5 * radius;
            phi = Math.atan2(phit.y, phit.x);
            if (phi < 0.0)
                phi += 2 * Math.PI;
 
View Full Code Here

            if (thit > ray.maxt)
                return false;
        }
       
        // compute sphere hit position and phi
        Point phit = ray.eval(thit);
        if (phit.x == 0.0 && phit.y == 0.0)
            phit.x = 1e-5 * radius;
        double phi = Math.atan2(phit.y, phit.x);
        if (phi < 0.0)
            phi += 2 * Math.PI;
 
View Full Code Here

           if (thit == t[1] || t[1] > ray.maxt)
               return false;
           thit = t[1];
          
           // compute sphere hit position and phi
           phit = ray.eval(thit);
           if (phit.x == 0.0 && phit.y == 0.0)
               phit.x = 1e-5 * radius;
           phi = Math.atan2(phit.y, phit.x);
           if (phi < 0.0)
               phi += 2 * Math.PI;
 
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.