home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!fang!tarpit!bilver!syscon!nstar!miles!sjm
- From: sjm@miles.com (Scott Mark)
- Subject: Re: Angle between two coordinate locations
- Message-ID: <1992Jul24.124253.26240@miles.com>
- Organization: Miles Inc., Diagnostics Division, Elkhart, IN
- References: <l6faduINN8f0@girtab.usc.edu> <stare.18.0@edstar.rl.af.mil> <1992Jul22.234146.5571@uniwa.uwa.edu.au>
- Date: Fri, 24 Jul 1992 12:42:53 GMT
- Lines: 42
-
- In article <1992Jul22.234146.5571@uniwa.uwa.edu.au> watson@maths.uwa.oz.au (David Watson) writes:
-
- [Many interpretations of picture given]
-
- I think by now someone should have guessed that the angle intended is between
- the line <X2,Y2>-><X1,Y1> and the line <X2,Y2>-><infinity,Y2>.
-
-
-
- The original image, embellished with 3rd point:
-
- >>>I have a problem where I need to obtain the angle between two points
- >>>on the screen. For instance:
- >
- >>> +------------------------------------------+
- >>> | * <-point 1 |
- >>> | |
- >>> | |
- >>> | |
- >>> | |
- >>> | |
- >>> | |
- >>> | * <-point 2 | * <-point 3
- >>> | |
- >>> +------------------------------------------+
- >
- >>>I would expect the function to return the angle as being 135 degrees
- >>>( or should if my picture was accurate ) Any help would be greatly
- >>>appreciated. Thanks
- >
- >>I'm a little confused, How do you define an angle between two points without
- >>first defining the location of the vertex. Is the vertex just assumed to be
- >>the origin (0,0)?
- >>Edward M.Starczewski email: stare@lonex.rl.af.mil
- >
- >I wondered about that too, but if it were (0,0) the angle returned
- >would be less than 135 degrees.
- >Give us a clue, Randi
-
-
- Scott Mark
- sjm@miles.com
-