/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
cull.rs | 41 float4 sphere; 42 sphere.x = (maxX + minX) * 0.5f; 43 sphere.y = (maxY + minY) * 0.5f; 44 sphere.z = (maxZ + minZ) * 0.5f; 46 radius.x = (maxX - sphere.x); 47 radius.y = (maxY - sphere.y); 48 radius.z = (maxZ - sphere.z); 50 sphere.w = length(radius); 51 obj->boundingSphere = sphere; 53 //rsDebug("Sphere", sphere) [all...] |
/frameworks/rs/scriptc/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-arm/usr/include/rs/scriptc/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-mips/usr/include/rs/scriptc/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/prebuilts/ndk/9/platforms/android-19/arch-x86/usr/include/rs/scriptc/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/prebuilts/sdk/renderscript/include/ |
rs_math.rsh | 152 * Checks if a sphere is withing the 6 frustum planes 153 * @param sphere float4 representing the sphere 162 rsIsSphereInFrustum(float4 *sphere, 167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 168 if (distToCenter < -sphere->w) { 171 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 172 if (distToCenter < -sphere->w) { 175 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 176 if (distToCenter < -sphere->w) [all...] |
/frameworks/base/opengl/java/android/opengl/ |
Visibility.java | 78 * world-space coordinates. R is the radius of the sphere. 82 * @param spheres a float array containing the sphere data. 83 * @param spheresOffset an offset into the sphere array where the sphere 107 * Compute a bounding sphere for a set of points. It is approximately the 108 * minimal bounding sphere of an axis-aligned box that bounds the points. 113 * @param sphere array containing the output as (x, y, z, r) 114 * @param sphereOffset offset where the sphere data will be written 118 * sphere is null, sphereOffset < 0, sphereOffset > sphere.length - 4 [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
Sphere.java | 26 * Class for generating a sphere model for given input params 30 * Indices store vertex indices for the whole sphere. 31 * Formula for generating sphere is originally coming from source code of 36 public class Sphere { 49 * @param x,y,z the origin of the sphere 50 * @param r the radius of the sphere 52 public Sphere(int nSlices, float x, float y, float z, float r, int numIndexBuffers) {
|
PlanetsRenderer.java | 53 private final Sphere[] mSpheres; 93 * complexity of sphere used. A sphere will have (numSlices + 1) 110 mSpheres = new Sphere[mNumSpheres]; 118 mSpheres[0] = new Sphere(SPHERE_SLICES, 0f, 0f, 0f, RADIUS_SUN, 121 mSpheres[i] = new Sphere(SPHERE_SLICES, 181 // generating VBOs for each sphere is not efficient way for drawing 193 3 * Sphere.FLOAT_SIZE); 400 * Sphere.FLOAT_SIZE, vertices, GLES20.GL_STATIC_DRAW); 415 indices[j].limit() * Sphere.SHORT_SIZE, indices[j] [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
SimpleAppRS.java | 82 // Load a file that constains two pieces of geometry, a sphere and a cube 157 // Draw a sphere 158 Renderable sphere = mScene.appendNewRenderable(); local 159 // Use the sphere geometry loaded earlier 160 sphere.setMesh(mSphereMesh); 161 // Make a transform to position the sphere 165 sphere.setTransform(t); 169 sphere.appendSourceParams(new TextureParam("diffuse", new Texture2D("", "red.jpg"))); 170 sphere.setRenderState(diffuseRS);
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
world.js | 76 type != "sphere" && 87 if (type == "sphere") {
|
scenes.js | 143 name: 'sphere', 144 type: 'sphere', 169 body.shape = 'sphere';
|
/external/replicaisland/src/com/replica/replicaisland/ |
SphereCollisionVolume.java | 20 /** A sphere collision volume. */ 90 // It's more accurate to do a sphere-as-box test than a box-as-sphere test. 104 // Whatever this volume is, pretend it's a sphere.
|
AABoxCollisionVolume.java | 22 * as sphere vs rectangle, may not be absolutely precise (in the case of a sphere vs a rectangle, 23 * for example, a new rectangle that fits the sphere is used to perform the intersection test, so
|
AnimationPlayerActivity.java | 127 View sphere = findViewById(R.id.animation_sphere); local 140 sphere.startAnimation(sphereAnim);
|
CollisionVolume.java | 22 * CollisionVolume describes a volume (rectangle, sphere, etc) used for dynamic collision detection.
|
/external/ceres-solver/include/ceres/ |
local_parameterization.h | 54 // For example, a sphere in three dimensions is a 2 dimensional 56 // the sphere, the plane tangent to it defines a two dimensional 57 // tangent space. For a cost function defined on this sphere, given a 58 // point x, moving in the direction normal to the sphere at that point 62 // operation involves projecting back onto the sphere. Doing so
|
/external/smack/src/org/xbill/DNS/ |
LOCRecord.java | 40 * @param latitude The latitude of the center of the sphere 41 * @param longitude The longitude of the center of the sphere 42 * @param altitude The altitude of the center of the sphere, in m 43 * @param size The diameter of a sphere enclosing the described entity, in m. 264 /** Returns the diameter of the enclosing sphere */
|
/external/llvm/test/Transforms/Inline/ |
inline-byval-bonus.ll | 11 %struct.sphere = type { %struct.vec3, double, %struct.material, %struct.sphere* } 17 define i32 @caller(%struct.sphere* %i) { 21 %call = call i32 @ray_sphere(%struct.sphere* %i, %struct.ray* byval align 8 %shadow_ray, %struct.spoint* null) 31 define i32 @ray_sphere(%struct.sphere* nocapture %sph, %struct.ray* nocapture byval align 8 %ray, %struct.spoint* %sp) nounwind uwtable ssp { 46 %15 = getelementptr inbounds %struct.sphere* %sph, i64 0, i32 0, i32 0 53 %22 = getelementptr inbounds %struct.sphere* %sph, i64 0, i32 0, i32 1 61 %30 = getelementptr inbounds %struct.sphere* %sph, i64 0, i32 0, i32 2 85 %54 = getelementptr inbounds %struct.sphere* %sph, i64 0, i32 1
|
/frameworks/base/docs/html/reference/renderscript/ |
rs__math_8rsh_source.html | 125 <a name="l00162"></a><a class="code" href="rs__math_8rsh.html#a7bbeaf44838e08e68d5cf3e3d7b0818c">00162</a> <a class="code" href="rs__math_8rsh.html#a7bbeaf44838e08e68d5cf3e3d7b0818c">rsIsSphereInFrustum</a>(<a class="code" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> *sphere, 130 <a name="l00167"></a>00167 <span class="keywordtype">float</span> distToCenter = <a class="code" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a>(left->xyz, sphere->xyz) + left->w; 131 <a name="l00168"></a>00168 <span class="keywordflow">if</span> (distToCenter < -sphere->w) { 134 <a name="l00171"></a>00171 distToCenter = <a class="code" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a>(right->xyz, sphere->xyz) + right->w; 135 <a name="l00172"></a>00172 <span class="keywordflow">if</span> (distToCenter < -sphere->w) { 138 <a name="l00175"></a>00175 distToCenter = <a class="code" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a>(top->xyz, sphere->xyz) + top->w; 139 <a name="l00176"></a>00176 <span class="keywordflow">if</span> (distToCenter < -sphere->w) { 142 <a name="l00179"></a>00179 distToCenter = <a class="code" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a>(bottom->xyz, sphere->xyz) + bottom->w; 143 <a name="l00180"></a>00180 <span class="keywordflow">if</span> (distToCenter < -sphere->w) { 146 <a name="l00183"></a>00183 distToCenter = <a class="code" href="rs__cl_8rsh.html#aa26d85eac3067e9769b33b6914b180f2">dot</a>(near->xyz, sphere->xyz) + near->w [all...] |
/external/eigen/demos/opengl/ |
gpuhelper.cpp | 122 static IcoSphere sphere; local 123 sphere.draw(level);
|
/packages/apps/Camera2/src/com/android/camera/app/ |
FilmstripBottomPanel.java | 36 * sphere image and creating a tiny planet from a photo sphere image.
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
raytrace.js | 65 // flog/shape/sphere.js 417 Flog.RayTracer.Shape.Sphere = Class.create(); 419 Flog.RayTracer.Shape.Sphere.prototype = { 459 return 'Sphere [position=' + this.position + ', radius=' + this.radius + ']'; 825 var sphere = new Flog.RayTracer.Shape.Sphere( 837 var sphere1 = new Flog.RayTracer.Shape.Sphere( 863 scene.shapes.push(sphere);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/v8-v4/ |
v8-raytrace.js | 60 // flog/shape/sphere.js 443 Flog.RayTracer.Shape.Sphere = Class.create(); 445 Flog.RayTracer.Shape.Sphere.prototype = { 485 return 'Sphere [position=' + this.position + ', radius=' + this.radius + ']'; 851 var sphere = new Flog.RayTracer.Shape.Sphere( 863 var sphere1 = new Flog.RayTracer.Shape.Sphere( 889 scene.shapes.push(sphere);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/v8-v5/ |
v8-raytrace.js | 60 // flog/shape/sphere.js 443 Flog.RayTracer.Shape.Sphere = Class.create(); 445 Flog.RayTracer.Shape.Sphere.prototype = { 485 return 'Sphere [position=' + this.position + ', radius=' + this.radius + ']'; 851 var sphere = new Flog.RayTracer.Shape.Sphere( 863 var sphere1 = new Flog.RayTracer.Shape.Sphere( 889 scene.shapes.push(sphere);
|