MCPcopy Index your code
hub / github.com/tdewolff/canvas / newNode

Method newNode

path_intersection.go:717–726  ·  view source on GitHub ↗
(item *SweepPoint)

Source from the content-addressed store, hash-verified

715}
716
717func (s *SweepStatus) newNode(item *SweepPoint) *SweepNode {
718 n := boNodePool.Get().(*SweepNode)
719 n.parent = nil
720 n.left = nil
721 n.right = nil
722 n.height = 1
723 n.SweepPoint = item
724 n.SweepPoint.node = n
725 return n
726}
727
728func (s *SweepStatus) returnNode(n *SweepNode) {
729 n.SweepPoint.node = nil

Callers 1

InsertAfterMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected