Exemple #1
0
 internal void MakePath(NNodeX node)
 {
     if (node != null)
     {
         this.PathNodes.Add(node);
         MakePath(node.Parent);
     }
 }
Exemple #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);
 }
Exemple #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);
 }