Package cofh.repack.codechicken.lib.vec

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


    Vector3 v = new Vector3();
    for (Vertex5 vert : verts) {
      v.add(vert.vec);
    }
    v.multiply(1 / (double) verts.length);
    return v;
  }

  public CCModel zOffset(Cuboid6 offsets) {
View Full Code Here


    }
    if (n_colour.z > 1) {
      n_colour.z = 1;
    }

    n_colour.multiply((colour >>> 24) / 255D, (colour >> 16 & 0xFF) / 255D, (colour >> 8 & 0xFF) / 255D);
    return (int) (n_colour.x * 255) << 24 | (int) (n_colour.y * 255) << 16 | (int) (n_colour.z * 255) << 8 | colour & 0xFF;
  }

  @Override
  public boolean load() {
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.