InternalCreate a PolygonTreeNode.
The parent node.
The area of this node.
The bounds of the polygon, or the combined bounds of all children in case of the root node.
The value of this property must not be mutated.
The children of this node.
The value of this property must not be mutated.
The Clipper path of this node. It is empty in case of the root node.
The value of this property must not be mutated.
The depth of this node. The depth of the root node is 0.
Is the (sub)tree empty?
Is this a hole? The root node is a hole.
The parent of this node or null if this is the root node.
The path of the polygon ([{x: x0, y: y0}, {x: x1, y: y1}, ...]).
They are null in case of the root node.
The value of this property must not be mutated.
The points of the polygon ([x0, y0, x1, y1, ...]).
They are null in case of the root node.
The value of this property must not be mutated.
The polygon of this node.
It is null in case of the root node.
The value of this property must not be mutated.
Iterate over recursively over the children in depth-first order.
Find the node in this (sub)tree that contains the given point.
The point.
The (sub)node that contains the point, if any. Cannot return null for PolygonTree; instead the root node (the tree itself) is returned.
Test circle containment/intersection with this (sub)tree.
The center point of the circle.
The radius of the circle.
Test whether given point is contained within this (sub)tree.
If distance is is nonzero, true is returned if and only if the signed distance from the point to the boundary of
the (sub)tree is less than or equal to distance. The signed distance is positive for points in the exterior of
the (sub)tree and negative for points within the interior of the (sub)tree.
The point.
Optionaldistance: number = 0The tolerance of the containment test.
Static_InternalCreate a node from the Clipper path and add it to the children of the parent.
The clipper path of this node.
The parent node or null if root.
The node of a foundry.data.PolygonTree.