nl_tokens: Recursively finds points that are inside the specified radius around a given position .
pl_tokens: function findPoints ( point , radius , skipSelf , octant , result ) { const children = octant . children ; let i , l ; if ( children !== null ) { let child ; for ( i = 0 , l = children . length ; i < l ; ++ i ) { child = children [ i ] ; if ( child . contains ( point , radius ) ) { findPoints ( point , radius , skipSelf , child , result ) ; } } } else if ( octant . points !== null ) { const points = octant . points ; const rSq = radius * radius ; let p ; for ( i = 0 , l = points . length ; i < l ; ++ i ) { p = points [ i ] ; if ( p . equals ( point ) ) { if ( ! skipSelf ) { result . push ( { point : p . clone ( ) , data : octant . data [ i ] } ) ; } } else if ( p . distanceToSquared ( <mask> ) <= rSq ) { result . push ( { point : p . clone ( ) , data : octant . data [ i ] } ) ; } } } }