d3 extensions
given tow points and width, calculate a polygon ended with an arrow.
var p = d3.polya().layout( [ 100, 100 ],[ 40, 40 ], 10 );
svg.append( "g")
.attr( "transform", p.transform() )
.append( "polygon")
.attr( "points", p.points())
.style( "fill", "gray" );
