modify parameter ccpoint to const ccpoint&