Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 //===================================================================//
 //                            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;
 }