Package com.ardor3d.math

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


        if (_picker != null) {
            final Vector3 normalStore = new Vector3();
            final Vector3 intersect = _picker.getTerrainIntersection(getWorldTransform(), _terrainCamera.getLocation(),
                    ray, null, normalStore);
            if (intersect != null) {
                final double distance = intersect.distance(ray.getOrigin());
                final IntersectionRecord record = new IntersectionRecord(new double[] { distance },
                        new Vector3[] { intersect }, new Vector3[] { normalStore }, null);
                return record;
            }
        }
View Full Code Here


                    t = InterpolationController.DELTA_MAX;
                }

                _curve.interpolate(startIndex, endIndex, t, target);

                length += previous.distance(target);

                previous.set(target);

                entries.add(new ArcLengthEntry(t, length));
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.