function rb = gr2rb( ep, sp )

if nargin < 2, sp = [0 0]; end

ds = ep - sp;

rb(2) = mod360(180/pi*atan2(ds(2),ds(1)));
rb(1) = sqrt(sum(ds.^2));

