Package cofh.repack.codechicken.lib.vec

Examples of cofh.repack.codechicken.lib.vec.Vector3.normalize()


      Vector3 new_n = new Vector3();
      for (Vector3 n : e.normals) {
        new_n.add(n);
      }

      new_n.normalize();
      for (Vector3 n : e.normals) {
        n.set(new_n);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.