comparing cgpoint easly