getX
getX: (RectangularShape) -> numberThe frame's x.
| Method | Returns | Description |
|---|---|---|
getX() | number | The frame's x. |
getY() | number | The frame's y. |
getWidth() | number | The frame's width. |
getHeight() | number | The frame's height. |
getMinX() | number | The frame's smallest x. |
getMinY() | number | The frame's smallest y. |
getMaxX() | number | The frame's largest x: x + width. |
getMaxY() | number | The frame's largest y: y + height. |
getCenterX() | number | The frame's centre x. |
getCenterY() | number | The frame's centre y. |
isEmpty() | boolean | Whether the frame encloses no area. |
setFrameFromDiagonal(number, number, number, number) | () | Set the frame from two opposite corners. |
getXgetX: (RectangularShape) -> numberThe frame's x.
getYgetY: (RectangularShape) -> numberThe frame's y.
getWidthgetWidth: (RectangularShape) -> numberThe frame's width.
getHeightgetHeight: (RectangularShape) -> numberThe frame's height.
getMinXgetMinX: (RectangularShape) -> numberThe frame's smallest x.
getMinYgetMinY: (RectangularShape) -> numberThe frame's smallest y.
getMaxXgetMaxX: (RectangularShape) -> numberThe frame's largest x: x + width.
getMaxYgetMaxY: (RectangularShape) -> numberThe frame's largest y: y + height.
getCenterXgetCenterX: (RectangularShape) -> numberThe frame's centre x.
getCenterYgetCenterY: (RectangularShape) -> numberThe frame's centre y.
isEmptyisEmpty: (RectangularShape) -> booleanWhether the frame encloses no area.
setFrameFromDiagonalsetFrameFromDiagonal: (RectangularShape, number, number, number, number) -> ()Set the frame from two opposite corners.