Examples of divideLocal()


Examples of com.jme3.math.Vector3f.divideLocal()

                float den = (float) Math.sqrt(S.z * S.z + T.z * T.z + 1);
                N.x = -S.z;
                N.y = -T.z;
                N.z = 1;
                N.divideLocal(den);

                // setting thge pixel in the result image
                bumpMap.setRGB(x, y, ImageUtils.vectorToColor(N.x, N.y, N.z));
            }
        }
View Full Code Here

Examples of com.jme3.math.Vector3f.divideLocal()

        if (!physicsLocationDirty) {
            return false;
        }
        if (!applyPhysicsLocal && spatial.getParent() != null) {
            localLocation.subtractLocal(spatial.getParent().getWorldTranslation());
            localLocation.divideLocal(spatial.getParent().getWorldScale());
            tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(localLocation);

//            localRotationQuat.set(worldRotationQuat);
            tmp_inverseWorldRotation.mult(localRotationQuat, localRotationQuat);
View Full Code Here

Examples of com.jme3.math.Vector3f.divideLocal()

            // + "-----------------");
            cPt.set(0, 0, 0);
            if ((c.size() / 3) > 4) {
                for (int i = 0; i < c.size(); i += 3)
                    cPt.addLocal(c.get(i), c.get(i + 1), c.get(i + 2));
                cPt.divideLocal(c.size() / 3);
                c.add(c.get(0));
                c.add(c.get(1));
                c.add(c.get(2));
                c.add(0, cPt.z);
                c.add(0, cPt.y);
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.