Anonymous user
Sutherland-Hodgman polygon clipping: Difference between revisions
Sutherland-Hodgman polygon clipping (view source)
Revision as of 13:54, 7 September 2019
, 4 years ago→{{header|C++}}
Line 512:
{
// subject polygon
{50,150}, {200,50}, {350,150},
{350,300},{250,300},{200,250},
Line 520:
// clipping polygon
// apply clipping
cout << "(" << newPolygon[i].x << ", " << newPolygon[i].y << ")" << endl;
}
</lang>
|