Searched refs:ray (Results 1 - 21 of 21) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/
H A DEntropyComputeUtil.java35 Ray ray = new Ray(pos, dir);
56 ray.setOrigin(pos);
59 terrainBlock.collideWith(ray, Matrix4f.IDENTITY, bbox, results);
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
H A DBoundingSphere.java719 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 DBoundingBox.java637 * 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...]
H A DBoundingVolume.java250 * 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
/external/v8/benchmarks/
H A Draytrace.js1 // The ray tracer code in this file is written by Adam Burmister. It
9 // JavaScript framework which is used by the ray tracer.
17 // the scene was ray traced correctly.
53 // The rest of this file is the actual ray tracer written by Adam
59 // flog/ray.js
426 intersect: function(ray){
430 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position);
432 var B = dst.dot(ray.direction);
440 ray.position,
442 ray
[all...]
/external/webkit/PerformanceTests/SunSpider/tests/v8-v4/
H A Dv8-raytrace.js1 // The ray tracer code in this file is written by Adam Burmister. It
9 // JavaScript framework which is used by the ray tracer.
12 // the scene was ray traced correctly.
48 // The rest of this file is the actual ray tracer written by Adam
54 // flog/ray.js
452 intersect: function(ray){
456 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position);
458 var B = dst.dot(ray.direction);
466 ray.position,
468 ray
[all...]
/external/webkit/PerformanceTests/SunSpider/tests/v8-v5/
H A Dv8-raytrace.js1 // The ray tracer code in this file is written by Adam Burmister. It
9 // JavaScript framework which is used by the ray tracer.
12 // the scene was ray traced correctly.
48 // The rest of this file is the actual ray tracer written by Adam
54 // flog/ray.js
452 intersect: function(ray){
456 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position);
458 var B = dst.dot(ray.direction);
466 ray.position,
468 ray
[all...]
/external/webkit/PerformanceTests/SunSpider/tests/v8-v6/
H A Dv8-raytrace.js1 // The ray tracer code in this file is written by Adam Burmister. It
9 // JavaScript framework which is used by the ray tracer.
12 // the scene was ray traced correctly.
48 // The rest of this file is the actual ray tracer written by Adam
54 // flog/ray.js
421 intersect: function(ray){
425 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position);
427 var B = dst.dot(ray.direction);
435 ray.position,
437 ray
[all...]
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/
H A DSimpleWaterProcessor.java109 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 DWaterFilter.java75 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/test/jme3test/collision/
H A DTestMousePick.java82 Ray ray = new Ray(origin, direction);
84 shootables.collideWith(ray, results);
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/
H A DHelloPicking.java97 // 2. Aim the ray from cam loc to cam direction.
98 Ray ray = new Ray(cam.getLocation(), cam.getDirection());
100 shootables.collideWith(ray, results);
/external/jmonkeyengine/engine/src/test/jme3test/post/
H A DTestDepthOfField.java191 Ray ray = new Ray(origin, direction);
193 int numCollisions = terrain.collideWith(ray, results);
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/
H A DBIHTree.java455 Ray ray = (Ray) other;
456 return collideWithRay(ray, worldMatrix, worldBound, results);
/external/jmonkeyengine/engine/src/test/jme3test/terrain/
H A DTerrainTestCollision.java258 Ray ray = new Ray(origin, direction);
260 int numCollisions = terrain.collideWith(ray, results);
H A DTerrainTestModifyHeight.java266 Ray ray = new Ray(origin, direction);
268 int numCollisions = terrain.collideWith(ray, results);
/external/quake/quake/src/QW/dxsdk/sdk/inc/
H A Dd3drmdef.h321 * Reflect a ray about a given normal. Returns its first argument.
324 LPD3DVECTOR ray,
/external/quake/quake/src/WinQuake/dxsdk/SDK/INC/
H A DD3DRMDEF.H321 * Reflect a ray about a given normal. Returns its first argument.
324 LPD3DVECTOR ray,
/external/openssh/contrib/caldera/
H A Dopenssh.spec48 Packager : Raymund Will <ray@caldera.de>
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
H A DTerrainQuad.java343 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).
H A DTerrainPatch.java803 private int collideWithRay(Ray ray, CollisionResults results) { argument

Completed in 363 milliseconds