Function rectAddPoint