Package com.ardor3d.math.type

Examples of com.ardor3d.math.type.ReadOnlyVector3.cross()


        fADdU[2] = Math.abs(fDdU[2]);
        if (fADdU[2] > _extent.getZ() && fDdU[2] * fWdU[2] >= 0.0) {
            return false;
        }

        rayDir.cross(diff, wCrossD);

        fAWxDdU[0] = Math.abs(wCrossD.dot(_xAxis));
        rhs = _extent.getY() * fAWdU[2] + _extent.getZ() * fAWdU[1];
        if (fAWxDdU[0] > rhs) {
            return false;
View Full Code Here


            final ReadOnlyVector3 camUp = cam.getUp();
            final ReadOnlyVector3 camLeft = cam.getLeft();
            final ReadOnlyVector3 camDir = cam.getDirection();
            if (parent.isVelocityAligned()) {
                bbX.set(_velocity).normalizeLocal().multiplyLocal(currSize);
                camDir.cross(bbX, bbY).normalizeLocal().multiplyLocal(currSize);
            } else if (orient == 0) {
                bbX.set(camLeft).multiplyLocal(currSize);
                bbY.set(camUp).multiplyLocal(currSize);
            } else {
                final double cA = MathUtils.cos(orient) * currSize;
 
View Full Code Here

            final ReadOnlyVector3 left = parent.getFacingLeftVector();
            final ReadOnlyVector3 up = parent.getFacingUpVector();

            if (parent.isVelocityAligned()) {
                bbX.set(_velocity).normalizeLocal().multiplyLocal(currSize);
                up.cross(bbX, bbY).normalizeLocal().multiplyLocal(currSize);
            } else if (orient == 0) {
                bbX.set(left).multiplyLocal(currSize);
                bbY.set(up).multiplyLocal(currSize);
            } else {
                final double cA = MathUtils.cos(orient) * currSize;
 
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.