예제 #1
0
 internal void MakePath(NNodeX node)
 {
     if (node != null)
     {
         this.PathNodes.Add(node);
         MakePath(node.Parent);
     }
 }
예제 #2
0
 private bool HitTestNodeX(NNodeX node, NPoint point)
 {
     if (node != null && node.Parent != null)
     {
         if (NMathHelper.Distance(node.Point, point) <= NConfig.HIT_DISTANCE)
         {
             return(true);
         }
         else
         {
             return(HitTestNodeX(node.Parent, point));
         }
     }
     return(false);
 }
예제 #3
0
 private bool Contains(NNodeX node, NPoint point)
 {
     if (node != null && node.Parent != null)
     {
         if (node.Point.Equals(point))
         {
             return(true);
         }
         else
         {
             return(Contains(node.Parent, point));
         }
     }
     return(false);
 }