示例#1
0
 /** set default values */
 public void setDefault() {
   distance = 0;
   prevMaterial = 0;
   currentMaterial = -1;
   depth = 0;
   hit = false;
   color.set(0, 0, 0, 0);
   emittance.set(0, 0, 0);
   specular = true;
 }
示例#2
0
 /**
  * Clone other ray
  *
  * @param other
  */
 public void set(Ray other) {
   prevMaterial = other.prevMaterial;
   currentMaterial = other.currentMaterial;
   depth = other.depth + 1;
   distance = 0;
   hit = false;
   x.set(other.x);
   d.set(other.d);
   n.set(other.n);
   color.set(0, 0, 0, 0);
   emittance.set(0, 0, 0);
   specular = other.specular;
 }
示例#3
0
 @Override
 public Vector4d toVector4d(Vector4d vec) {
   return vec.set(this.x, this.y, this.z, this.w);
 }