nearest method

V nearest (V object, { TreeSearch nearestOption: TreeSearch.NEAREST })

Search the tree for the matching object or the nearestOption if missing. See TreeSearch.

Implementation

V nearest(V object, {TreeSearch nearestOption: TreeSearch.NEAREST});