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