예제 #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();
 }
예제 #2
0
파일: Vec.java 프로젝트: veez2303/TinyWorld
 public static void main(String[] args) {
   Vec vec = new Vec(10000f, 1f);
   vec.normalize();
   System.out.println(vec);
 }