bool Let3d::adjacent int  ,
int 
 

Definition at line 372 of file let3d.cpp.

References depth(), path2Node(), and radius().

Referenced by calgnext().

00373 {
00374   int md = max(depth(me),depth(yo));
00375   Index3 one(1);
00376   Index3 mecenter(  (2*path2Node(me)+one) * pow2(md - depth(me))  );
00377   Index3 yocenter(  (2*path2Node(yo)+one) * pow2(md - depth(yo))  );
00378   int meradius = pow2(md - depth(me));
00379   int yoradius = pow2(md - depth(yo));
00380   Index3 dif( abs(mecenter-yocenter) );
00381   int radius  = meradius + yoradius;
00382   return
00383          ( dif <= Index3(radius) ) && //not too far
00384          ( dif.linfty() == radius ); //at least one edge touch
00385 }


Generated on Sun Dec 4 19:24:40 2005 for fmm3d by  doxygen 1.4.5