コード例 #1
0
ファイル: Ray.java プロジェクト: vazexqi/JFlowBenchmarks
 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);
 }