コード例 #1
0
ファイル: Transform.java プロジェクト: relu91/jmonkeyengine
 @Override
 public Transform clone() {
   try {
     Transform tq = (Transform) super.clone();
     tq.rot = rot.clone();
     tq.scale = scale.clone();
     tq.translation = translation.clone();
     return tq;
   } catch (CloneNotSupportedException e) {
     throw new AssertionError();
   }
 }
コード例 #2
0
ファイル: Plane.java プロジェクト: Retzinsky/jmonkeyengine
 @Override
 public Plane clone() {
   try {
     Plane p = (Plane) super.clone();
     p.normal = normal.clone();
     return p;
   } catch (CloneNotSupportedException e) {
     throw new AssertionError();
   }
 }