Searched refs:sphere (Results 1 – 6 of 6) sorted by relevance
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/cpp/ |
D | Scene.cpp | 291 const Sphere& sphere = spheres[i]; in draw() local 293 glUniform1f(state.radiusHandle, sphere.radius); in draw() 298 getMatrices(mvpMatrix, normalMatrix, aspectRatio, sphere.pos, sphere.rot); in draw() 356 for(auto& sphere: spheres) { in tick() local 357 sphere.pos.x += sphere.velocity.x * deltaSeconds; in tick() 358 sphere.pos.y += sphere.velocity.y * deltaSeconds; in tick() 359 if (sphere.pos.x > 0.8f) { in tick() 360 sphere.velocity.x *= -1.0f; in tick() 361 sphere.pos.x = 1.6f - sphere.pos.x; in tick() 362 } else if (sphere.pos.x < -0.8f) { in tick() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_matrix.c | 369 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/ |
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->w) { 149 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w; [all …]
|
/frameworks/rs/script_api/include/ |
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->xyz) + top->w; 150 if (distToCenter < -sphere->w) { [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | Visibility.java | 121 int positionsOffset, int positionsCount, float[] sphere, in computeBoundingSphere() argument
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 313 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()
|