Package cofh.repack.codechicken.lib.vec

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


   * @return A Cuboid6 containing all the verts in this model
   */
  public Cuboid6 bounds() {

    Vector3 vec1 = verts[0].vec;
    Cuboid6 c = new Cuboid6(vec1.copy(), vec1.copy());
    for (int i = 1; i < verts.length; i++) {
      c.enclose(verts[i].vec);
    }
    return c;
  }
View Full Code Here


   * @return A Cuboid6 containing all the verts in this model
   */
  public Cuboid6 bounds() {

    Vector3 vec1 = verts[0].vec;
    Cuboid6 c = new Cuboid6(vec1.copy(), vec1.copy());
    for (int i = 1; i < verts.length; i++) {
      c.enclose(verts[i].vec);
    }
    return c;
  }
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.