| ángulo | real (0,0...359,9) |
| capa | entero |
| x1, y1 | int (esquina inferior izquierda) |
| x2, y2 | int (esquina superior derecha) |
Ver también UL_BOARD, UL_FOOTPRINT, UL_SHEET, UL_SYMBOL
Las coordenadas (x1 y1) y (x2 y2) siempre hacen referencia a la orientación inicial del rectángulo, independientemente del ángulo.
El angle define cuántos grados va a girar el rectángulo en sentido antihorario alrededor del centro. Las coordenadas centrales vienen dadas por (x1+x2)/2 y (y1+y2)/2.
board(B) {
B.rectangles(R) {
printf("Rectangle: (%f %f), (%f %f)\n",
u2mm(R.x1), u2mm(R.y1), u2mm(R.x2), u2mm(R.y2));
}
}