Announcement

Collapse
No announcement yet.

Re: calculation of 2D angles

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Re: calculation of 2D angles

    Dear Allan,

    Sorry - the reason I missed you out of the summary is that your original
    mail didn't have the [BIOMCH-L] tag on it and so got seperated from the
    rest.

    I do think your method is unnecessarily complicated though. Am I missing
    something? e.g. why do you need to define a unit vector?

    Incidentally, I now realise that the simplest possible method is:

    angle = ATAN2(x,y)
    If angle < 0 THEN angle = angle + 2 pi

    This was submitted by Zong-Ming Li, although several people suggested
    it. I have checked it, and included it in the spreadsheet:
    http://guardian.curtin.edu.au/cga/faq/2Dangles.xls

    Chris
    --
    Dr. Chris Kirtley MD PhD
    Associate Professor
    Dept. of Biomedical Engineering
    Catholic University of America
    620 Michigan Ave NE, Washington, DC 20064
    Tel. 202-319-6247, fax 202-319-4287
    Email: kirtley@cua.edu
    http://engineering.cua.edu/biomedical/faculty/kirtley

    ---------------------------------------------------------------
    To unsubscribe send SIGNOFF BIOMCH-L to LISTSERV@nic.surfnet.nl
    For information and archives: http://isb.ri.ccf.org/biomch-l
    ---------------------------------------------------------------
Working...
X