[求助]这个return语句用的对不对
int Inside (testpt,ClipBoundary)
Vertex testpt;
Edge ClipBoundary;
{
if(ClipBoundary[1].x> ClipBoundary[0].x)
if(testpt.y>= ClipBoundary[0].y)
return 1;
else if(ClipBoundary[1].x< ClipBoundary[0].x)
if(testpt.y<= ClipBoundary[0].y)
return 1;
else if(ClipBoundary[1].y> ClipBoundary[0].y)
if(testpt.x<= ClipBoundary[0].x)
return 1;
else if(ClipBoundary[1].y< ClipBoundary[0].y)
if(testpt.x>= ClipBoundary[0].x)
return 1;
else
return 0;
}