/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/ |
D | BufferUtils.java | 91 public static <T> void rotate(T[] ray, int first, int new_first, int last) { in rotate() argument 94 T temp = ray[first]; in rotate() 95 ray[first] = ray[next]; in rotate() 96 ray[next] = temp; in rotate() 108 public static void rotate(int[] ray, int first, int new_first, int last) { in rotate() argument 111 int temp = ray[first]; in rotate() 112 ray[first] = ray[next]; in rotate() 113 ray[next] = temp; in rotate() 125 public static void rotate(float[] ray, int first, int new_first, int last) { in rotate() argument 128 float temp = ray[first]; in rotate() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | Intersector.java | 330 public static boolean intersectRayPlane (Ray ray, Plane plane, Vector3 intersection) { in intersectRayPlane() argument 331 float denom = ray.direction.dot(plane.getNormal()); in intersectRayPlane() 333 float t = -(ray.origin.dot(plane.getNormal()) + plane.getD()) / denom; in intersectRayPlane() 336 if (intersection != null) intersection.set(ray.origin).add(v0.set(ray.direction).scl(t)); in intersectRayPlane() 338 } else if (plane.testPoint(ray.origin) == Plane.PlaneSide.OnPlane) { in intersectRayPlane() 339 if (intersection != null) intersection.set(ray.origin); in intersectRayPlane() 383 …public static boolean intersectRayTriangle (Ray ray, Vector3 t1, Vector3 t2, Vector3 t3, Vector3 i… in intersectRayTriangle() argument 387 Vector3 pvec = v2.set(ray.direction).crs(edge2); in intersectRayTriangle() 391 …if (p.testPoint(ray.origin) == PlaneSide.OnPlane && Intersector.isPointInTriangle(ray.origin, t1, … in intersectRayTriangle() 392 if (intersection != null) intersection.set(ray.origin); in intersectRayTriangle() [all …]
|
/external/llvm/test/Transforms/Inline/ |
D | inline-byval-bonus.ll | 4 ; The performance of the c-ray benchmark largely depends on the inlining of a 14 %struct.ray = type { %struct.vec3, %struct.vec3 } 18 %shadow_ray = alloca %struct.ray, align 8 19 call void @fix(%struct.ray* %shadow_ray) 21 …%call = call i32 @ray_sphere(%struct.sphere* %i, %struct.ray* byval align 8 %shadow_ray, %struct.s… 29 declare void @fix(%struct.ray*) 31 define i32 @ray_sphere(%struct.sphere* nocapture %sph, %struct.ray* nocapture byval align 8 %ray, %… 32 %1 = getelementptr inbounds %struct.ray, %struct.ray* %ray, i64 0, i32 1, i32 0 35 %4 = getelementptr inbounds %struct.ray, %struct.ray* %ray, i64 0, i32 1, i32 1 39 %8 = getelementptr inbounds %struct.ray, %struct.ray* %ray, i64 0, i32 1, i32 2 [all …]
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/pooling/arrays/ |
D | Vec2Array.java | 51 final Vec2[] ray = new Vec2[argLength]; in getInitializedArray() local 52 for (int i = 0; i < ray.length; i++) { in getInitializedArray() 53 ray[i] = new Vec2(); in getInitializedArray() 55 return ray; in getInitializedArray()
|
D | GeneratorArray.java | 24 final VoronoiDiagram.Generator[] ray = new VoronoiDiagram.Generator[length]; in getInitializedArray() local 25 for (int i = 0; i < ray.length; i++) { in getInitializedArray() 26 ray[i] = new VoronoiDiagram.Generator(); in getInitializedArray() 28 return ray; in getInitializedArray()
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
D | BoundingSphere.java | 719 public boolean intersects(Ray ray) { in intersects() argument 724 Vector3f diff = vars.vect1.set(ray.getOrigin()).subtractLocal(center); in intersects() 733 float b = ray.getDirection().dot(diff); in intersects() 746 private int collideWithRay(Ray ray, CollisionResults results) { in collideWithRay() argument 749 Vector3f diff = vars.vect1.set(ray.getOrigin()).subtractLocal( in collideWithRay() 755 a1 = ray.direction.dot(diff); in collideWithRay() 760 Vector3f point = new Vector3f(ray.direction).multLocal(distance).addLocal(ray.origin); in collideWithRay() 768 a1 = ray.direction.dot(diff); in collideWithRay() 780 Vector3f point = new Vector3f(ray.direction).multLocal(dist).addLocal(ray.origin); in collideWithRay() 784 point = new Vector3f(ray.direction).multLocal(dist).addLocal(ray.origin); in collideWithRay() [all …]
|
D | BoundingBox.java | 642 public boolean intersects(Ray ray) { in intersects() argument 649 Vector3f diff = ray.origin.subtract(getCenter(vars.vect2), vars.vect1); in intersects() 657 fWdU[0] = ray.getDirection().dot(Vector3f.UNIT_X); in intersects() 666 fWdU[1] = ray.getDirection().dot(Vector3f.UNIT_Y); in intersects() 675 fWdU[2] = ray.getDirection().dot(Vector3f.UNIT_Z); in intersects() 684 Vector3f wCrossD = ray.getDirection().cross(diff, vars.vect2); in intersects() 714 private int collideWithRay(Ray ray, CollisionResults results) { in collideWithRay() argument 717 Vector3f diff = vars.vect1.set(ray.origin).subtractLocal(center); in collideWithRay() 718 Vector3f direction = vars.vect2.set(ray.direction); in collideWithRay() 735 new Vector3f(ray.direction).multLocal(distances[0]).addLocal(ray.origin), in collideWithRay() [all …]
|
/external/v8/benchmarks/ |
D | raytrace.js | 426 intersect: function(ray){ argument 430 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position); 432 var B = dst.dot(ray.direction); 440 ray.position, 442 ray.direction, 478 intersect: function(ray){ argument 481 var Vd = this.position.dot(ray.direction); 484 var t = -(this.position.dot(ray.position) + this.d) / Vd; 490 ray.position, 492 ray.direction, [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
D | Camera.java | 62 private final Ray ray = new Ray(new Vector3(), new Vector3()); field in Camera 253 …unproject(ray.origin.set(screenX, screenY, 0), viewportX, viewportY, viewportWidth, viewportHeight… in getPickRay() 254 …unproject(ray.direction.set(screenX, screenY, 1), viewportX, viewportY, viewportWidth, viewportHei… in getPickRay() 255 ray.direction.sub(ray.origin).nor(); in getPickRay() 256 return ray; in getPickRay()
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
D | RayCastTest.java | 74 Ray ray = camera.getPickRay(x, y); in tap() local 75 rayFrom.set(ray.origin); in tap() 76 rayTo.set(ray.direction).scl(50f).add(rayFrom); // 50 meters max from the origin in tap() 91 body.applyCentralImpulse(tmpV2.set(ray.direction).scl(20f)); in tap()
|
D | RayPickRagdollTest.java | 94 Ray ray = camera.getPickRay(screenX, screenY); in touchDown() local 95 tmpV1.set(ray.direction).scl(10f).add(ray.origin); in touchDown() 96 ClosestRayResultCallback cb = new ClosestRayResultCallback(ray.origin, tmpV1); in touchDown() 97 world.collisionWorld.rayTest(ray.origin, tmpV1, cb); in touchDown() 147 Ray ray = camera.getPickRay(screenX, screenY); in touchDragged() local 148 tmpV1.set(ray.direction).scl(pickDistance).add(camera.position); in touchDragged()
|
D | BaseBulletTest.java | 220 Ray ray = camera.getPickRay(x, y); in shoot() local 221 BulletEntity entity = world.add(what, ray.origin.x, ray.origin.y, ray.origin.z); in shoot() 224 ((btRigidBody)entity.body).applyCentralImpulse(ray.direction.scl(impulse)); in shoot()
|
D | TriangleRaycastTest.java | 152 Ray ray = camera.getPickRay(screenX, screenY); in tap() local 153 rayFrom.set(ray.origin); in tap() 154 rayTo.set(ray.direction).scl(100).add(rayFrom); in tap()
|
/external/skia/src/pathops/ |
D | SkPathOpsCurve.h | 235 static void line_intersect_ray(const SkPoint a[2], SkScalar , const SkDLine& ray, in line_intersect_ray() argument 239 i->intersectRay(line, ray); in line_intersect_ray() 242 static void quad_intersect_ray(const SkPoint a[3], SkScalar , const SkDLine& ray, in quad_intersect_ray() argument 246 i->intersectRay(quad, ray); in quad_intersect_ray() 249 static void conic_intersect_ray(const SkPoint a[3], SkScalar weight, const SkDLine& ray, in conic_intersect_ray() argument 253 i->intersectRay(conic, ray); in conic_intersect_ray() 256 static void cubic_intersect_ray(const SkPoint a[4], SkScalar , const SkDLine& ray, in cubic_intersect_ray() argument 260 i->intersectRay(cubic, ray); in cubic_intersect_ray()
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/collision/ |
D | Ray.java | 105 public Ray set (Ray ray) { in set() argument 106 this.origin.set(ray.origin); in set() 107 this.direction.set(ray.direction); in set()
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/ |
D | EntropyComputeUtil.java | 35 Ray ray = new Ray(pos, dir); in computeLodEntropy() local 56 ray.setOrigin(pos); in computeLodEntropy() 59 terrainBlock.collideWith(ray, Matrix4f.IDENTITY, bbox, results); in computeLodEntropy()
|
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/ |
D | SimpleWaterProcessor.java | 109 protected Ray ray = new Ray(); field in SimpleWaterProcessor 190 ray.setOrigin(sceneCam.getLocation()); in postQueue() 191 ray.setDirection(sceneCam.getDirection()); in postQueue() 205 if (!ray.intersectsWherePlane(plane, targetLocation)) { in postQueue() 206 ray.setDirection(ray.getDirection().negateLocal()); in postQueue() 207 ray.intersectsWherePlane(plane, targetLocation); in postQueue()
|
D | WaterFilter.java | 75 protected Ray ray = new Ray(); field in WaterFilter 150 ray.setOrigin(sceneCam.getLocation()); in preFrame() 151 ray.setDirection(sceneCam.getDirection()); in preFrame() 155 if (!ray.intersectsWherePlane(plane, targetLocation)) { in preFrame() 156 ray.setDirection(ray.getDirection().negateLocal()); in preFrame() 157 ray.intersectsWherePlane(plane, targetLocation); in preFrame()
|
/external/skia/src/core/ |
D | SkStroke.cpp | 231 ResultType strokeCloseEnough(const SkPoint stroke[3], const SkPoint ray[2], 967 const SkPoint ray[2], SkQuadConstruct* quadPts STROKER_DEBUG_PARAMS(int depth)) const { in strokeCloseEnough() 970 if (points_within_dist(ray[0], strokeMid, fInvResScale)) { // if the difference is small in strokeCloseEnough() 980 ray[0].fX, ray[0].fY, strokeMid.fX, strokeMid.fY, fInvResScale); in strokeCloseEnough() 984 if (!ptInQuadBounds(stroke, ray[0])) { // if far, subdivide in strokeCloseEnough() 988 ray[0].fX, ray[0].fY); in strokeCloseEnough() 992 int rootCount = intersect_quad_ray(ray, stroke, roots); in strokeCloseEnough() 999 if (points_within_dist(ray[0], quadPt, error)) { // if the difference is small, we're done in strokeCloseEnough() 1009 ray[0].fX, ray[0].fY, quadPt.fX, quadPt.fY, error); in strokeCloseEnough() 1027 SkPoint ray[2]; // points near midpoint on quad, midpoint on cubic in compareQuadCubic() local [all …]
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/pooling/normal/ |
D | DefaultWorldPool.java | 272 Vec2[] ray = new Vec2[argLength]; in getVec2Array() local 274 ray[i] = new Vec2(); in getVec2Array() 276 avecs.put(argLength, ray); in getVec2Array()
|
/external/jmonkeyengine/engine/src/test/jme3test/collision/ |
D | TestMousePick.java | 82 Ray ray = new Ray(origin, direction); in simpleUpdate() local 84 shootables.collideWith(ray, results); in simpleUpdate()
|
/external/eigen/unsupported/Eigen/ |
D | BVH | 39 * - Determine all points where a ray intersects a triangle mesh 48 … - Find the intersection between a ray and a triangle mesh closest to the ray origin (function is …
|
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/ |
D | HelloPicking.java | 98 Ray ray = new Ray(cam.getLocation(), cam.getDirection()); 100 shootables.collideWith(ray, results);
|
/external/skia/tests/ |
D | PathOpsAngleIdeas.cpp | 510 SkDVector ray = q.ptAtT(smallT) - origin; in testQuadAngles() local 512 if (ray.fX * end.fX < 0 || ray.fY * end.fY < 0) { in testQuadAngles() 515 double rayDist = ray.length(); in testQuadAngles() 529 SkDVector ray = q.ptAtT(t) - origin; in testQuadAngles() local 531 double rayDist = ray.length(); in testQuadAngles() 534 double midXray = mid.crossCheck(ray); in testQuadAngles()
|
/external/jmonkeyengine/engine/src/test/jme3test/post/ |
D | TestDepthOfField.java | 191 Ray ray = new Ray(origin, direction); in simpleUpdate() local 193 int numCollisions = terrain.collideWith(ray, results); in simpleUpdate()
|