Package net.minecraft.src

Examples of net.minecraft.src.Vec3.lengthVector()


    public static Quaternion exp(Quaternion input)
    {
        float inputA = input.w;
        Vec3 inputV = Vec3.fakePool.getVecFromPool(input.x, input.y, input.z);
        float outputA = (float)(Math.exp(inputA) * Math.cos(inputV.lengthVector()));
        Vec3 outputV = Vec3.fakePool.getVecFromPool(0, 0, 0);
        outputV.xCoord = Math.exp(inputA) * (inputV.normalize().xCoord * (float)Math.sin(inputV.lengthVector()));
        outputV.yCoord = Math.exp(inputA) * (inputV.normalize().yCoord * (float)Math.sin(inputV.lengthVector()));
        outputV.zCoord = Math.exp(inputA) * (inputV.normalize().zCoord * (float)Math.sin(inputV.lengthVector()));

 
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.