/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/ |
H A D | EntropyComputeUtil.java | 35 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 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 | 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...] |
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
|
/external/v8/benchmarks/ |
H A D | raytrace.js | 1 // 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/skia/src/pathops/ |
H A D | SkPathOpsCurve.h | 235 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, argument 239 i->intersectRay(line, ray); 242 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, argument 246 i->intersectRay(quad, ray); 249 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, argument 253 i->intersectRay(conic, ray); 256 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, argument 260 i->intersectRay(cubic, ray);
|
H A D | SkOpSegment.cpp | 1193 SkDLine ray = {{{midPt.fX, midPt.fY}, local 1195 (*CurveIntersectRay[opp->verb()])(opp->pts(), opp->weight(), ray, &i);
|
/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/test/jme3test/collision/ |
H A D | TestMousePick.java | 82 Ray ray = new Ray(origin, direction); 84 shootables.collideWith(ray, results);
|
/external/skia/src/core/ |
H A D | SkStroke.cpp | 268 ResultType strokeCloseEnough(const SkPoint stroke[3], const SkPoint ray[2], 1125 const SkPoint ray[2], SkQuadConstruct* quadPts STROKER_DEBUG_PARAMS(int depth)) const { 1129 if (points_within_dist(ray[0], strokeMid, fInvResScale)) { // if the difference is small 1138 "points_within_dist(ray[0]=%g,%g, strokeMid=%g,%g, fInvResScale=%g)", 1139 ray[0].fX, ray[0].fY, strokeMid.fX, strokeMid.fY, fInvResScale); 1143 if (!ptInQuadBounds(stroke, ray[0])) { // if far, subdivide 1145 "!pt_in_quad_bounds(stroke=(%g,%g %g,%g %g,%g), ray[0]=%g,%g)", 1147 ray[0].fX, ray[ [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/ |
H A D | HelloPicking.java | 97 // 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 D | TestDepthOfField.java | 191 Ray ray = new Ray(origin, direction); 193 int numCollisions = terrain.collideWith(ray, results);
|
/external/skia/tests/ |
H A D | PathOpsAngleIdeas.cpp | 510 SkDVector ray = q.ptAtT(smallT) - origin; 512 if (ray.fX * end.fX < 0 || ray.fY * end.fY < 0) { 515 double rayDist = ray.length(); 529 SkDVector ray = q.ptAtT(t) - origin; 531 double rayDist = ray.length(); 534 double midXray = mid.crossCheck(ray); 661 If the hulls overlap, and have the same general direction, then intersect the shorter end point ray
|
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
H A D | cmssm.c | 478 cmsLine ray; local 500 // Create a ray line from centre to this point 502 LineOf2Points(&ray, &Lab, &Centre); 522 ClosestLineToLine(&temp, &ray, &edge);
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/ |
H A D | BIHTree.java | 455 Ray ray = (Ray) other; 456 return collideWithRay(ray, worldMatrix, worldBound, results);
|
/external/jmonkeyengine/engine/src/test/jme3test/terrain/ |
H A D | TerrainTestCollision.java | 258 Ray ray = new Ray(origin, direction); 260 int numCollisions = terrain.collideWith(ray, results);
|
H A D | TerrainTestModifyHeight.java | 266 Ray ray = new Ray(origin, direction); 268 int numCollisions = terrain.collideWith(ray, results);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
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).
|
H A D | TerrainPatch.java | 803 private int collideWithRay(Ray ray, CollisionResults results) {
argument
|