Package com.ardor3d.math

Examples of com.ardor3d.math.Vector4.lerpLocal()


        double u = 0, v = smallerFrom * dv;
        int index = smallerFrom * sizeX * 3;
        for (int y = smallerFrom; y < biggerTo; y++) {
            for (int x = 0; x < sizeX; x++) {
                pointTop.lerpLocal(intersectTopLeft, intersectTopRight, u);
                pointBottom.lerpLocal(intersectBottomLeft, intersectBottomRight, u);
                pointFinal.lerpLocal(pointTop, pointBottom, v);

                pointFinal.setX(pointFinal.getX() / pointFinal.getW());
                pointFinal.setZ(pointFinal.getZ() / pointFinal.getW());
                pointFinal.setY(heightGenerator.getHeight(pointFinal.getX(), pointFinal.getZ(), time));
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.