Tom Kelliher, CS 320
Due February 14 and 16, 2011, at the start of class.
Problems 1-3 are due on the 14th. Problem 4 is due the 16th.
x
and y
coordinates of the two endpoints of the
line segment.
MinX
, MaxX
, MinY
, and MaxY
describing
the left, right, bottom, and top edges of the clipping rectangle,
respectively.
Include an explanation describing how your algorithm works.
tetra.c
program on the class home page
as your starting point. In addition to modifying the program by perturbing
the segment midpoints, also make these modifications:
Email your source code to me by the start of class on the 16th.