MCPcopy Create free account
hub / github.com/tdewolff/canvas / updateHeight

Method updateHeight

path_intersection.go:621–630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619}
620
621func (n *SweepNode) updateHeight() {
622 n.height = 0
623 if n.left != nil {
624 n.height = n.left.height
625 }
626 if n.right != nil && n.height < n.right.height {
627 n.height = n.right.height
628 }
629 n.height++
630}
631
632func (n *SweepNode) swapChild(a, b *SweepNode) {
633 if n.right == a {

Callers 1

rebalanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected