Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Hello World
SUBMITTED BY:
Guest
DATE:
Jan. 16, 2014, 7:35 p.m.
FORMAT:
Text only
SIZE:
330 Bytes
Raw
Download
Tweet
HITS:
731
Go to comments
Report
Pro polar, coords1, coords2
magnitude = sqrt((coords_begin[0]-coords_end[0])^2+(coords_begin[1]-coords_end[1])^2)
slope = (coords_end[1]-coords_begin[1])/(coords_end[0]-coords_begin[0])
angle = 180/!DPI*atan(slope)
print, 'magnitude of vector is: ', magnitude
print, 'angle of vector is: ', angle
end
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus