Lines Matching refs:distToCenter
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;
150 if (distToCenter < -sphere->w) {
153 distToCenter = dot(near->xyz, sphere->xyz) + near->w;
154 if (distToCenter < -sphere->w) {
157 distToCenter = dot(far->xyz, sphere->xyz) + far->w;
158 if (distToCenter < -sphere->w) {