Package com.ardor3d.math

Examples of com.ardor3d.math.Vector3.lengthSquared()


        _center.multiplyLocal(quantity);

        double maxRadiusSqr = 0;
        for (int i = 0; i < points.length; i++) {
            final Vector3 diff = points[i].subtract(_center, _compVect1);
            final double radiusSqr = diff.lengthSquared();
            if (radiusSqr > maxRadiusSqr) {
                maxRadiusSqr = radiusSqr;
            }
        }
View Full Code Here


            store.setRadius(Double.POSITIVE_INFINITY);
            return store;
        }

        final Vector3 diff = otherCenter.subtract(_center, _compVect1);
        final double lengthSquared = diff.lengthSquared();
        final double radiusDiff = otherRadius - getRadius();
        final double radiusDiffSqr = radiusDiff * radiusDiff;

        // if one sphere wholly contains the other
        if (radiusDiffSqr >= lengthSquared) {
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.