| angle1 | real (Startwinkel, 0.0...359.9) |
| angle2 | real (Endwinkel, 0.0...719.9) |
| cap | int (CAP_...) |
| layer | int |
| radius | int |
| width | int |
| x1, y1 | int (Startpunkt) |
| x2, y2 | int (Endpunkt) |
| xc, yc | int (Mittelpunkt) |
Konstanten
| CAP_FLAT | flache Arc-Enden |
| CAP_ROUND | runde Arc-Enden |
Siehe auch UL_WIRE
Anmerkung
Start- und Endwinkel werden im mathematisch positiven Sinne ausgegeben (also gegen den Uhrzeigersinn, "counterclockwise"), wobei gilt angle1 < angle2. Um diese Bedingung einzuhalten kann es sein, daß Start- und Endpunkt eines UL_ARC gegenüber denen des UL_WIRE, von dem der Arc abstammt, vertauscht sind.
Beispiel
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 |