Exemple #1
0
 /** Constructor create an instance of a light, set it to on, color to null, from.z = 1.0 */
 public Light(int num) {
   number = num % 8;
   on = true;
   from = new PointType();
   to = new PointType();
   from.z = 1000.0F;
   color = null;
 }
Exemple #2
0
 public void translate(double x, double y, double z) {
   position.x += x;
   position.y += y;
   position.z += z;
 }
Exemple #3
0
 public void translate(float x, float y, float z) {
   position.x += x;
   position.y += y;
   position.z += z;
 }