home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / sci / math / 17489 < prev    next >
Encoding:
Text File  |  1992-12-29  |  943 b   |  25 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!seas.gwu.edu!ilan
  3. From: ilan@seas.gwu.edu (Ilan Berkner)
  4. Subject: Need: prpndcular dist from pt to line
  5. Message-ID: <1992Dec29.210554.5350@seas.gwu.edu>
  6. Sender: news@seas.gwu.edu
  7. Organization: George Washington University
  8. Date: Tue, 29 Dec 1992 21:05:54 GMT
  9. Lines: 14
  10.  
  11.  
  12. Given a line, or line segment (I can do both), I need to find the 
  13. distance from a point (that may or may not be on the line) to that line.
  14. If the point is on the line, then the distance is zero, obviously.
  15.  
  16. I know the endpoints of the line segment in cartesian space, and I also
  17. know the slope and intercept, and the coordinates of the point.
  18.  
  19. This is for a computer application, so anything involving integer math
  20. is preferable to floating-point.
  21.  
  22. Thanx very much in advance.  I know this is almost a trivial problem
  23. for all you math geniuses out there, but I also want to make sure that
  24. whatever solution I get, is also the best.
  25.