/// <summary>
 /// Adds a given node to the list of branches that diverge from this node.
 /// </summary>
 /// <param name="other">the node to add to the list of branches</param>
 public void AddBranch(ContourNode other)
 {
     this.branches.Add(other);
 }
Example #2
0
 /// <summary>
 /// Checks if this node matches another ContourNode.
 /// </summary>
 /// <param name="other">the ContourNode to check</param>
 /// <returns>true if they match; false otherwise</returns>
 public bool Matches(ContourNode other)
 {
     return this.x == other.x && this.y == other.y && this.z == other.z && this.t == other.t;
 }
 //===================================================================//
 //                            Actions                                //
 //===================================================================//
 /// <summary>
 /// Setter for the trunk node of this node.
 /// </summary>
 /// <param name="other">the node to set as the trunk</param>
 public void SetTrunk(ContourNode other)
 {
     this.trunk = other;
 }