Home
last modified time | relevance | path

Searched refs:sphere (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
Dcull.rs41 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;
Dscenegraph_objects.rsh315 // The sphere is behind us
/frameworks/rs/scriptc/
Drs_math.rsh152 * 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) {
179 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DSimpleAppRS.java158 Renderable sphere = mScene.appendNewRenderable(); in setupShadedGeometry() local
160 sphere.setMesh(mSphereMesh); in setupShadedGeometry()
165 sphere.setTransform(t); in setupShadedGeometry()
169 sphere.appendSourceParams(new TextureParam("diffuse", new Texture2D("", "red.jpg"))); in setupShadedGeometry()
170 sphere.setRenderState(diffuseRS); in setupShadedGeometry()
/frameworks/base/opengl/java/android/opengl/
DVisibility.java121 int positionsOffset, int positionsCount, float[] sphere, in computeBoundingSphere() argument
/frameworks/base/core/jni/android/opengl/
Dutil.cpp239 FloatArrayHelper sphere(env, sphere_ref, sphereOffset, 4); in util_computeBoundingSphere() local
241 bool checkOK = positions.check() && sphere.check(); in util_computeBoundingSphere()
247 sphere.bind(); in util_computeBoundingSphere()
296 float* pSphere = sphere.mData; in util_computeBoundingSphere()
305 sphere.commitChanges(); in util_computeBoundingSphere()