Package vazkii.botania.common.core.helper

Examples of vazkii.botania.common.core.helper.Vector3.copy()


      public void calcEndDiffs() {
        if(prev != null) {
          Vector3 prevdiffnorm = prev.diff.copy().normalize();
          Vector3 thisdiffnorm = diff.copy().normalize();

          prevdiff = thisdiffnorm.copy().add(prevdiffnorm).normalize();
          sinprev = (float) Math.sin(thisdiffnorm.angle(prevdiffnorm.multiply(-1)) / 2);
        } else {
          prevdiff = diff.copy().normalize();
          sinprev = 1;
        }
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.