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) |
Constants
CAP_FLAT | flat arc ends |
CAP_ROUND | round arc ends |
See also UL_WIRE
Note
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 exchanged with respect to the UL_WIRE the arc has been derived from.
Example
board(B) { B.wires(W) { if (W.arc) printf("Arc: (%d %d), (%d %d), (%d %d)\n", W.arc.x1, W.arc.y1, W.arc.x2, W.arc.y2, W.arc.xc, W.arc.yc); } }
Index | Copyright © 2005 CadSoft Computer GmbH |