Package com.ardor3d.math.type

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


    public IntersectionRecord intersectsWhere(final ReadOnlyRay3 ray) {
        final ReadOnlyVector3 rayDir = ray.getDirection();
        final ReadOnlyVector3 rayOrigin = ray.getOrigin();

        // convert ray to box coordinates
        final Vector3 diff = rayOrigin.subtract(getCenter(), _compVect1);
        diff.set(_xAxis.dot(diff), _yAxis.dot(diff), _zAxis.dot(diff));
        final Vector3 direction = _compVect2.set(_xAxis.dot(rayDir), _yAxis.dot(rayDir), _zAxis.dot(rayDir));

        final double[] t = { 0, Double.POSITIVE_INFINITY };
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.