/// <summary>Determines whether the <see cref="Chisel.Core.CSGTree"/> contains a specific value.</summary> /// <param name="item">The Object to locate in the <see cref="Chisel.Core.CSGTree"/>.</param> /// <returns><b>true</b> if item is found in the <see cref="Chisel.Core.CSGTree"/>; otherwise, <b>false</b>.</returns> public bool Contains(CSGTreeNode item) { return(CSGTreeNode.IndexOfChildNode(treeNodeID, item.nodeID) != -1); }
/// <summary>Determines the index of a specific child in the <see cref="Chisel.Core.CSGTree"/>.</summary> /// <param name="item">The <see cref="Chisel.Core.CSGTreeNode"/> to locate in the <see cref="Chisel.Core.CSGTree"/>.</param> /// <returns>The index of <paramref name="item"/> if found in the <see cref="Chisel.Core.CSGTree"/>; otherwise, –1.</returns> public int IndexOf(CSGTreeNode item) { return(CSGTreeNode.IndexOfChildNode(treeNodeID, item.nodeID)); }