angle1 | real (start angle, 0.0...359.9) |
angle2 | real (end angle, 0.0...719.9) |
cap | int (CAP_...) |
layer | int |
radius | int |
width | int |
x1, y1 | int (starting point) |
x2, y2 | int (end point) |
xc, yc | int (center point) |
See also UL_WIRE.
CAP_FLAT | flat arc ends |
CAP_ROUND | round arc ends |
Start and end angles are defined mathematically positive (i.e. counterclockwise), with angle1 < angle2. In order to assure this condition, the start and end point of an UL_ARC may be exchanged with respect to the UL_WIRE the arc has been derived from.
board(B) {
B.wires(W) {
if (W.arc)
printf("Arc: (%f %f), (%f %f), (%f %f)\n",
u2mm(W.arc.x1), u2mm(W.arc.y1), u2mm(W.arc.x2), u2mm(W.arc.y2), u2mm(W.arc.xc), u2mm(W.arc.yc));
}
}