}
return rightChild.nodeAt(aPoint, radius);
}
else
{
Node ret = null;
if ( leftChild != null )
{
ret = leftChild.nodeAt(aPoint, radius);
}
if ( ret == null && rightChild != null )
{
ret = rightChild.nodeAt(aPoint, radius);
}
return ret;
}
}
else
{
if ( aPoint.y < splitNode.getY() )
{
if ( leftChild == null )
{
return null;
}
return leftChild.nodeAt(aPoint, radius);
}
else if ( aPoint.y > splitNode.getY() )
{
if ( rightChild == null )
{
return null;
}
return rightChild.nodeAt(aPoint, radius);
}
else
{
Node ret = null;
if ( leftChild != null )
{
ret = leftChild.nodeAt(aPoint, radius);
}
if ( ret == null && rightChild != null )