Searched refs:sphere (Results 1 - 5 of 5) 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/scriptc/ |
H A D | rs_matrix.rsh | 124 * 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 [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...] |
/frameworks/rs/api/ |
H A D | rs_matrix.spec | 126 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 [all...] |
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 334 FloatArrayHelper sphere(env, sphere_ref, sphereOffset, 4); 336 bool checkOK = positions.check() && sphere.check(); 342 sphere.bind(); 390 // just take the diagonal of the box as defining our sphere. 391 float* pSphere = sphere.mData; 400 sphere.commitChanges(); 418 // Return true if the sphere intersects or is inside the frustum
|
Completed in 4021 milliseconds