def fromAttr(mid, ang, dist):
mx, my = mid<EOL>dx = cos(ang) * dist * <NUM_LIT:0.5><EOL>dy = sin(ang) * dist * <NUM_LIT:0.5><EOL>return mx - dx, my - dy, mx + dx, my + dy<EOL>
create from middle, angle and distance