Lines Matching refs:distSq
208 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f);
209 if (distSq < curr->fDistSq) {
212 curr->fDistSq = distSq;
219 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f;
220 if (distSq < curr->fDistSq) {
222 curr->fDistSq = distSq;
229 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f);
230 if (distSq < curr->fDistSq) {
233 curr->fDistSq = distSq;
240 distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f;
241 if (distSq < curr->fDistSq) {
243 curr->fDistSq = distSq;
254 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f;
255 if (distSq < curr->fDistSq) {
257 curr->fDistSq = distSq;
268 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f;
269 if (distSq < curr->fDistSq) {
271 curr->fDistSq = distSq;
282 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f;
283 if (distSq < curr->fDistSq) {
285 curr->fDistSq = distSq;
292 distSq = check->fDistSq - 2.0f*(distVec.fX - distVec.fY - 1.0f);
293 if (distSq < curr->fDistSq) {
296 curr->fDistSq = distSq;
303 distSq = check->fDistSq + 2.0f*distVec.fY + 1.0f;
304 if (distSq < curr->fDistSq) {
306 curr->fDistSq = distSq;
313 distSq = check->fDistSq + 2.0f*(distVec.fX + distVec.fY + 1.0f);
314 if (distSq < curr->fDistSq) {
317 curr->fDistSq = distSq;