Sutherland–Hodgman algorithm: Difference between revisions

Content deleted Content added
m Reverted edits by 114.143.229.206 (talk): Failure to cite a reliable source (HG)
Jmsarazee (talk | contribs)
Line 35:
 
''ComputeIntersection'' is a trivial function, omitted here for clarity, which returns the intersection of a line segment and an infinite edge. Note that it is only called if such an intersection is known to exist, and hence can simply treat both lines as being infinitely long.
 
==Working Code in C++==
<source lang="cpp">
 
#include <iostream>
 
int main()
{
std::cout << "Hello, world!\n";
}
</source>
 
==See also==