function setpoint( time, hdg, spd, r0 )

dist = spd * time;

if nargin < 4, r0 = [0 0]; end
