coords[1] = first[1];\r
case PathIterator.SEG_LINETO:\r
//Do it;\r
+ \r
+ //TODO XXX\r
+ //Usint arctan is imprecise, the base of the rectangle does not perfectly coincide with the\r
+ //edge of the poly. Instead I should find the normal vector and build the rect myself prerotated.\r
double len = Math.sqrt(Math.pow(last[0] - coords[0], 2) + Math.pow(last[1] - coords[1], 2));\r
double dx = coords[0]-last[0];\r
double dy = coords[1]-last[1];\r