Function isPointCurved