Searched defs:sphere (Results 1 - 2 of 2) sorted by relevance
/frameworks/base/opengl/java/android/opengl/ |
H A D | 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 120 computeBoundingSphere(float[] positions, int positionsOffset, int positionsCount, float[] sphere, int sphereOffset) argument [all...] |
/frameworks/rs/driver/runtime/ |
H A D | rs_matrix.c | 369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, argument 371 float distToCenter = dot(left->xyz, sphere->xyz) + left->w; 372 if (distToCenter < -sphere->w) { 375 distToCenter = dot(right->xyz, sphere->xyz) + right->w; 376 if (distToCenter < -sphere->w) { 379 distToCenter = dot(top->xyz, sphere->xyz) + top->w; 380 if (distToCenter < -sphere->w) { 383 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w; 384 if (distToCenter < -sphere->w) { 387 distToCenter = dot(near->xyz, sphere [all...] |
Completed in 80 milliseconds