From: T DOT Harte AT btinternet DOT com (Thomas Harte) Newsgroups: comp.os.msdos.djgpp Subject: ALLEGRO : check for Line intersecting a point . . . how? Date: Thu, 14 Aug 1997 17:35:14 GMT Organization: BT Internet Lines: 13 Message-ID: <33f340d2.7053399@news.btinternet.com> NNTP-Posting-Host: host5-99-62-144.btinternet.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi I want to know in Allegro if a line I draw intersects a point I know. Is there a way to do this using Allegro, or should I just implement my own line algorithm? The reason I ask is that I am doing the level editor for my next project, and obviously when you try to click and drag a line it would be necessary for me to know which line you are attempting to click and drag . . . Or, can you think of another way for me to do this? There is in theory no maximum number of lines on screen, although maps above a certain complexity probably won't be created for runtime speed reasons if nothing else. -Thomas