Package jray.common

Examples of jray.common.Cone


      double ld = 0.2;
     
      int leafColor = IntColors.A+(((int)(IntColors.G*(0.5 + 0.5*Math.random())))&IntColors.G);
     
      if(Math.random()<0.5){
        objects.add(new Cone(new Vect3(x,y+2,z),new Vect3(t0,-1.6,t1),10,leafColor));
        objects.add(new Cone(new Vect3(x,y+2,z),new Vect3(t0*2,-2,t1*2),1,0xFF8B4513));
      }else{
        objects.add(new Sphere(new Vect3(x,y+1.5-ld/2,z),ld,leafColor));
        objects.add(new Cone(new Vect3(x,y+1.5,z),new Vect3(t0*2,-1.5,t1*2),1,0xFF8B4513));
      }
    }
View Full Code Here

TOP

Related Classes of jray.common.Cone

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.