Package crazypants.vecmath

Examples of crazypants.vecmath.Vector3d.distance()


    double mix = MathHelper.clamp_float((start - ratio) / (start - end), 0, 1);
    double scale = 1;
    if(mix > 0) {
     
      Vector3d eyePoint = Util.getEyePositionEio(EnderIO.proxy.getClientPlayer());     
      scale = tanFovRad * eyePoint.distance(loc);
     
      //Using this scale will give us the block full screen, we will make it 20% of the screen
      scale *= Config.travelAnchorZoomScale;     

      //only apply 70% of the scaling so more distance targets are still smaller than closer targets
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.