tools to average points in a defined region