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(); }
public static void main(String[] args) { Vec vec = new Vec(10000f, 1f); vec.normalize(); System.out.println(vec); }