示例#1
0
 public static Vector3f frozen(Vector3i vector) {
   if (vector == null) {
     throw new NullPointerException("vector must not be null");
   }
   return new Vector3f(false, vector.x(), vector.y(), vector.z());
 }
示例#2
0
 public static Vector3f mutable(Vector3i vector) {
   if (vector == null) {
     throw new NullPointerException("vector must not be null");
   }
   return new Vector3f(true, vector.x(), vector.y(), vector.z());
 }