Node2Leaf

References
public class Node2Leaf
Represents a single element in a recursive quad-tree Node structure.

Constructors

Node2Leaf

#
Blank constructor
public Node2Leaf()

Node2Leaf

#
Box constructor. Create an empty leaf with a specific box.
public Node2Leaf()

Node2Leaf

#
Copy constructor
public Node2Leaf(
Node2Leaf
other
Leaf to mimic
)

Fields

m_A

#
protected Node2Leaf m_A

m_B

#
protected Node2Leaf m_B

m_C

#
protected Node2Leaf m_C

m_D

#
protected Node2Leaf m_D

m_nodes

#
protected List<int> m_nodes

m_x0

#
protected double m_x0

m_x1

#
protected double m_x1

m_y0

#
protected double m_y0

m_y1

#
protected double m_y1

Properties

A

#
public Node2Leaf A { get; }

B

#
public Node2Leaf B { get; }

C

#
public Node2Leaf C { get; }

D

#
public Node2Leaf D { get; }

Nodes

#
Gets the indices of all nodes which are contained in this leaf.
public List<int> Nodes { get; }

SubLeafCount

#
public int SubLeafCount { get; }

x_max

#
Gets the right bounary of the Leaf space.
public double x_max { get; }

x_mid

#
Gets the vertical center axis of the Leaf space.
public double x_mid { get; }

x_min

#
Gets the left bounary of the Leaf space.
public double x_min { get; }

y_max

#
Gets the top bounary of the Leaf space.
public double y_max { get; }

y_mid

#
Gets the horizontal center axis of the Leaf space.
public double y_mid { get; }

y_min

#
Gets the bottom bounary of the Leaf space.
public double y_min { get; }

Methods

Contains

#
public bool Contains()

MaximumDistance

#
public double MaximumDistance()

MaximumDistanceSquared

#
public double MaximumDistanceSquared()

MinimumDistance

#
public double MinimumDistance()

MinimumDistanceSquared

#
public double MinimumDistanceSquared()

PerformLeafAction

#
public void PerformLeafAction(
ILeafAction
func,
call_on_empty_leaves
)

PerformLeafAction

#
public void PerformLeafAction(
LeafAction
func,
call_on_empty_leaves
)

SolveProximity

#
Recursive method that solves a proximity search.
public void SolveProximity(
nodes,
Node set to search
prox
Proximity object to search with
)

SubDivide

#
Builds a subtree from a Node list.
public void SubDivide(
nodes,
All the nodes that are supposed to be included in this tree.
index_subset,
A subset of nodes on which to perform the subdivision. Pass a null-pointer to use ALL nodes. If the list is not null, used indices will be extracted from the list, in order to reduce the number of pointless inclusion tests.
group_limit
The number of allowed Nodes per Leaf. If a Leaf contains more than N nodes, it will subdivide.
)