home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!munnari.oz.au!uniwa!watson
- From: watson@maths.uwa.oz.au (David Watson)
- Subject: Re: Angle between two coordinate locations
- Message-ID: <1992Jul22.234146.5571@uniwa.uwa.edu.au>
- Sender: news@uniwa.uwa.edu.au (USENET News System)
- Nntp-Posting-Host: madvax.maths.uwa.oz.au
- Organization: University of Western Australia
- References: <l6faduINN8f0@girtab.usc.edu> <stare.18.0@edstar.rl.af.mil>
- Date: Wed, 22 Jul 1992 23:41:46 GMT
- Lines: 34
-
-
- >>I have a problem where I need to obtain the angle between two points
- >>on the screen. For instance:
-
- >> +------------------------------------------+
- >> | * <-point 1 |
- >> | |
- >> | |
- >> | |
- >> | |
- >> | |
- >> | |
- >> | * <-point 2 |
- >> | |
- >> +------------------------------------------+
-
- >>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
-
- --
- Dave Watson Internet: watson@maths.uwa.oz.au
- Department of Mathematics
- The University of Western Australia Tel: (61 9) 380 3359
- Nedlands, WA 6009 Australia. FAX: (61 9) 380 1028
-