Path: chuka.playstation.co.uk!news From: "Jon Prestidge (Moose)" Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Line normal Date: Sat, 4 Mar 2000 12:23:57 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 26 Message-ID: <89qvbs$9g42@chuka.playstation.co.uk> References: <38ac28a2.9170426@news.playstation.co.uk> NNTP-Posting-Host: modem-98.dexfenfluramine.dialup.pol.co.uk X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 A simple way is to just find dx and dy and swap them and use them to draw the perpendicular line. Change the sign of dx or dy depending on which way you want the perpendicular line to point. dx is simply found by subtracting the x ordinate at the start of the line from the x ordinate at the end of the line ... and find dy by doing the same for the y ordinates. Decide the co-ordinate where you want the new line to start then just add the swapped dx and dy to x and y respectively to find the end point of the new line. Jon Prestidge Rad wrote in message news:38ac28a2.9170426@news.playstation.co.uk... > Hi, > > If I have a line, how do I calculate another line perpendicular to > this line? > Or should that be how do I calculate the normal to a line? > > Thanks, > Rad.