## Copyright (C) 2011 rolf.becker
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING. If not, see
## .
## arrow_test
## Author: rolf.becker
## Created: 2011-04-04
function [ ret ] = arrow_test ()
P0=[0 0]';
P1=[1 1]';
P2=[-1 1]';
P3=[-1 -1]';
scale=0.1;
style=2;
lw=2;
arrow(P0,P0+P1,scale,style,lw)
hold on
arrow(P0+P1,P0+P1+P2,scale,style,lw)
arrow(P0+P1+P2,P0+P1+P2+P3,scale,style,lw)
hold off
axis equal
axis square
grid on
endfunction