a few basic point/polygon utilities