Package com.thecrouchmode.vector

Examples of com.thecrouchmode.vector.Vector3f.scale()


       
        Vector3f normal = new Vector3f(0, 0, 0);
        for(Vector3f normalTerm : normalLists.get(i)){
          normal = normal.add(normalTerm);
        }
        normal = normal.scale(1.0/normalLists.get(i).size());
        //normal = new Vector3f(1, 0, 0);
       
        dataBuffer[i*elements+3] = normal.x;
        dataBuffer[i*elements+4] = normal.y;
        dataBuffer[i*elements+5] = normal.z;
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.