EAGLE Help

UL_RECTANGLE


Data members

angle real (0.0...359.9)
layer int
x1, y1 int (lower left corner)
x2, y2 int (upper right corner)

See also UL_BOARD, UL_PACKAGE, UL_SHEET, UL_SYMBOL

angle defines how many degrees the rectangle is rotated counterclockwise around its center. The center coordinates are given by (x1+x2)/2 and (y1+y2)/2.

Example

board(B) {
  B.rectangles(R) {
    printf("Rectangle: (%d %d), (%d %d)\n",
           R.x1, R.y1, R.x2, R.y2);
    }
  }

Index Copyright © 2005 CadSoft Computer GmbH