MCPcopy
hub / github.com/tdewolff/canvas / Next

Method Next

path_intersection.go:555–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553}
554
555func (n *SweepNode) Next() *SweepNode {
556 // go right
557 if n.right != nil {
558 n = n.right
559 for n.left != nil {
560 n = n.left // find the left-most of current subtree
561 }
562 return n
563 }
564
565 for n.parent != nil && n.parent.right == n {
566 n = n.parent // find first parent for which we're left
567 }
568 return n.parent // can be nil
569}
570
571//func (a *SweepNode) swap(b *SweepNode) {
572// a.SweepPoint, b.SweepPoint = b.SweepPoint, a.SweepPoint

Callers 10

ParseLaTeXFunction · 0.45
FindPrevNextMethod · 0.45
bentleyOttmannFunction · 0.45
relateFunction · 0.45
parseAttributesMethod · 0.45
parseTagMethod · 0.45
parseStyleMethod · 0.45
parseStyleAttributeMethod · 0.45
ParseSVGFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected