#!/bin/sh

# Calculate distance between x1,y1 and x2,y2
DIST=$(echo "sqrt(($3-$1)*($3-$1)+($4-$2)*($4-$2))"|bc -l)
# Start at x1,y1 and point at x2,y2
# Draw a line from x1,y1 to x2,y2 and 2 little lines
logo -t 1 -x $1 -y $2 -v $3 -w $4<<+++
PC $5,$6,$7
FD $DIST
HT
RT 135
FD 10
KT
LT 135
FD 10
+++
