2.5.1 Brute Force

cf. [FvDFH90, 3.12.2]

To clip a point $ (x,y)$ against a rectangle $ [x_{\min},x_{\max}]\times [y_{\min},y_{\max}]$ means to draw the point exactly if the following condition is satisfied:

$\displaystyle (x_{\min}\leq x\leq x_{\max})$    and $\displaystyle (y_{\min}\leq y\leq y_{\max}).
$

Clipping a line against a rectangle can lead to one of the following cases:

But this is still an inefficient method.

Andreas Kriegl 2003-07-23