friend function-member added to Point class