Hello World


SUBMITTED BY: Guest

DATE: Jan. 16, 2014, 7:36 p.m.

FORMAT: Text only

SIZE: 332 Bytes

HITS: 766

  1. Pro polar, coords1, coords2
  2. magnitude = sqrt((coords_begin[0]-coords_end[0])^2+(coords_begin[1]-coords_end[1])^2)
  3. slope = (coords_end[1]-coords_begin[1])/(coords_end[0]-coords_begin[0])
  4. angle = 180/!DPI*atan(slope)
  5. print, 'magnitude of vector is: ', magnitude
  6. print, 'angle of vector is: ', angle
  7. end

comments powered by Disqus