Lines Matching refs:sphere
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()
388 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()
391 distToCenter = dot(far->xyz, sphere->xyz) + far->w; in rsIsSphereInFrustum()
392 if (distToCenter < -sphere->w) { in rsIsSphereInFrustum()