Home | History | Annotate | Download | only in scriptc

Lines Matching refs:sphere

152  * Checks if a sphere is withing the 6 frustum planes
153 * @param sphere float4 representing the sphere
162 rsIsSphereInFrustum(float4 *sphere,
167 float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
168 if (distToCenter < -sphere->w) {
171 distToCenter = dot(right->xyz, sphere->xyz) + right->w;
172 if (distToCenter < -sphere->w) {
175 distToCenter = dot(top->xyz, sphere->xyz) + top->w;
176 if (distToCenter < -sphere->w) {
179 distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
180 if (distToCenter < -sphere->w) {
183 distToCenter = dot(near->xyz, sphere->xyz) + near->w;
184 if (distToCenter < -sphere->w) {
187 distToCenter = dot(far->xyz, sphere->xyz) + far->w;
188 if (distToCenter < -sphere->w) {