Path: utzoo!utgpu!watmath!maytag!aries5!lhf From: lhf@aries5.uucp (Luiz H. deFigueiredo) Newsgroups: comp.graphics Subject: Re: Vector Clipping Message-ID: <378@maytag.waterloo.edu> Date: 15 Aug 89 02:06:32 GMT References: <4670@tekig5.PEN.TEK.COM> Sender: daemon@maytag.waterloo.edu Reply-To: lhf@Self.UUCP (Luiz H. deFigueiredo) Distribution: na Organization: Computer Systems Group, University of Waterloo Lines: 16 In article <4670@tekig5.PEN.TEK.COM> peteru@tekig5.PEN.TEK.COM (Peter Uchytil) writes: >Hi, I need an algorithm that will do vector clipping. Ideally it would >work like this: give it the clipping window and the endpoints of the >vector and it gives you the new endpoints back. There must be an >algorithm of this type somewhere out there. Can someone point me in the >right direction? Thanks! How about one of the text books like Newman & Sproll, Foley & van Dan, Baker, Harrison, etc... They all explain the Choen-Sutherland algorithm for vector clipping. ------------------------------------------------------------------------------- Luiz Henrique de Figueiredo internet: lhf@aries5.waterloo.edu Computer Systems Group bitnet: lhf@watcsg University of Waterloo (possible domains are waterloo.edu and uwaterloo.ca) -------------------------------------------------------------------------------