Searched defs:ray (Results 1 - 7 of 7) sorted by relevance
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
H A D | BoundingSphere.java | 719 public boolean intersects(Ray ray) {
argument 724 Vector3f diff = vars.vect1.set(ray.getOrigin()).subtractLocal(center);
733 float b = ray.getDirection().dot(diff);
746 private int collideWithRay(Ray ray, CollisionResults results) {
argument 749 Vector3f diff = vars.vect1.set(ray.getOrigin()).subtractLocal(
755 a1 = ray.direction.dot(diff);
760 Vector3f point = new Vector3f(ray.direction).multLocal(distance).addLocal(ray.origin);
768 a1 = ray.direction.dot(diff);
780 Vector3f point = new Vector3f(ray [all...] |
H A D | BoundingVolume.java | 250 * determines if a ray intersects this bounding volume.
252 * @param ray
253 * the ray to test.
254 * @return true if this volume is intersected by a given ray.
256 public abstract boolean intersects(Ray ray);
argument
|
H A D | BoundingBox.java | 637 * determines if this bounding box intersects with a given ray object. If an
642 public boolean intersects(Ray ray) {
argument 649 Vector3f diff = ray.origin.subtract(getCenter(vars.vect2), vars.vect1);
657 fWdU[0] = ray.getDirection().dot(Vector3f.UNIT_X);
666 fWdU[1] = ray.getDirection().dot(Vector3f.UNIT_Y);
675 fWdU[2] = ray.getDirection().dot(Vector3f.UNIT_Z);
684 Vector3f wCrossD = ray.getDirection().cross(diff, vars.vect2);
714 private int collideWithRay(Ray ray, CollisionResults results) {
argument 717 Vector3f diff = vars.vect1.set(ray.origin).subtractLocal(center);
718 Vector3f direction = vars.vect2.set(ray [all...] |
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/ |
H A D | SimpleWaterProcessor.java | 109 protected Ray ray = new Ray(); field in class:SimpleWaterProcessor 189 //update ray 190 ray.setOrigin(sceneCam.getLocation()); 191 ray.setDirection(sceneCam.getDirection()); 205 if (!ray.intersectsWherePlane(plane, targetLocation)) { 206 ray.setDirection(ray.getDirection().negateLocal()); 207 ray.intersectsWherePlane(plane, targetLocation);
|
H A D | WaterFilter.java | 75 protected Ray ray = new Ray(); field in class:WaterFilter 150 ray.setOrigin(sceneCam.getLocation()); 151 ray.setDirection(sceneCam.getDirection()); 155 if (!ray.intersectsWherePlane(plane, targetLocation)) { 156 ray.setDirection(ray.getDirection().negateLocal()); 157 ray.intersectsWherePlane(plane, targetLocation);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
H A D | TerrainPatch.java | 803 private int collideWithRay(Ray ray, CollisionResults results) {
argument
|
H A D | TerrainQuad.java | 343 private int collideWithRay(Ray ray, CollisionResults results) {
argument 347 Vector3f intersection = picker.getTerrainIntersection(ray, results);
1655 * Gather the terrain patches that intersect the given ray (toTest).
|
Completed in 165 milliseconds