if(first==true) {
first=false;
if(dx*dx+dy*dy > tool.GetDiameter()/2.0) {
// line does not start at last tool location, lift and move.
if(tool.DrawIsOn()) {
tool.WriteOff(out);
}
tool.WriteMoveTo(out, (float)x,(float)y);
}
// else line starts right here, do nothing.