Ejemplo n.º 1
0
 public Ray(Vec pnt, Vec dir) {
   P = new Vec(pnt.x, pnt.y, pnt.z);
   D = new Vec(dir.x, dir.y, dir.z);
   D.normalize();
 }
Ejemplo n.º 2
0
 public static void main(String[] args) {
   Vec vec = new Vec(10000f, 1f);
   vec.normalize();
   System.out.println(vec);
 }