Home
last modified time | relevance | path

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

/frameworks/rs/driver/runtime/
Drs_matrix.c369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, in rsIsSphereInFrustum() argument
371 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; in rsIsSphereInFrustum()
372 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()
375 distToCenter = dot(right->xyz, sphere->xyz) + right->w; in rsIsSphereInFrustum()
376 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()
379 distToCenter = dot(top->xyz, sphere->xyz) + top->w; in rsIsSphereInFrustum()
380 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()
383 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w; in rsIsSphereInFrustum()
384 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()
387 distToCenter = dot(near->xyz, sphere->xyz) + near->w; in rsIsSphereInFrustum()
[all …]
/frameworks/rs/script_api/
Drs_matrix.spec126 arg: float4* sphere, "float4 representing the sphere."
133 summary: Checks if a sphere is within the frustum planes
135 Returns true if the sphere is within the 6 frustum planes.
137 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
138 if (distToCenter < -sphere->w) {
141 distToCenter = dot(right->xyz, sphere->xyz) + right->w;
142 if (distToCenter < -sphere->w) {
145 distToCenter = dot(top->xyz, sphere->xyz) + top->w;
146 if (distToCenter < -sphere->w) {
149 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
[all …]
/frameworks/rs/script_api/include/
Drs_matrix.rsh124 * rsIsSphereInFrustum: Checks if a sphere is within the frustum planes
126 * Returns true if the sphere is within the 6 frustum planes.
129 * sphere: float4 representing the sphere.
139 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom,
141 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
142 if (distToCenter < -sphere->w) {
145 distToCenter = dot(right->xyz, sphere->xyz) + right->w;
146 if (distToCenter < -sphere->w) {
149 distToCenter = dot(top->xyz, sphere->xyz) + top->w;
150 if (distToCenter < -sphere->w) {
[all …]
/frameworks/base/opengl/java/android/opengl/
DVisibility.java121 int positionsOffset, int positionsCount, float[] sphere, in computeBoundingSphere() argument
/frameworks/base/core/jni/android/opengl/
Dutil.cpp313 FloatArrayHelper sphere(env, sphere_ref, sphereOffset, 4); in util_computeBoundingSphere() local
315 bool checkOK = positions.check() && sphere.check(); in util_computeBoundingSphere()
321 sphere.bind(); in util_computeBoundingSphere()
370 float* pSphere = sphere.mData; in util_computeBoundingSphere()
379 sphere.commitChanges(); in util_computeBoundingSphere()