summaryrefslogtreecommitdiff
path: root/1340/DEPENDENCIES/vector.sci
blob: 00153f92b17276ca51c50fdefe546a14eeca434b (plain)
1
2
3
4
function [y,angle] = vector(a,b)
    y = sqrt((real(a)-real(b))^2+(imag(a)-imag(b))^2);
    angle = atan((imag(a)-imag(b)),(real(a)-real(b)))*180/%pi;
endfunction