Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DoubleRight()

static SortedInt32KeyNode< TValue > System.Collections.Immutable.SortedInt32KeyNode< TValue >.DoubleRight ( SortedInt32KeyNode< TValue > tree)
inlinestaticprivate

Definition at line 281 of file SortedInt32KeyNode.cs.

282 {
283 Requires.NotNull(tree, "tree");
284 if (tree._left.IsEmpty)
285 {
286 return tree;
287 }
289 return RotateRight(tree2);
290 }
static SortedInt32KeyNode< TValue > RotateLeft(SortedInt32KeyNode< TValue > tree)
static SortedInt32KeyNode< TValue > RotateRight(SortedInt32KeyNode< TValue > tree)

References System.Collections.Immutable.SortedInt32KeyNode< TValue >.RotateLeft(), and System.Collections.Immutable.SortedInt32KeyNode< TValue >.RotateRight().

Referenced by System.Collections.Immutable.SortedInt32KeyNode< TValue >.MakeBalanced().