Optionally consider diagonal neighbours as connected.
Javadoc.
return result points
reformatted
include result points in result