pythagoras.d

## Interface IRectangularShape

• ### Method Summary

All Methods
Modifier and Type Method and Description
`Point` `center()`
Returns the center of the framing rectangle.
`double` `centerX()`
Returns the x-coordinate of the center of the framing rectangle.
`double` `centerY()`
Returns the y-coordinate of the center of the framing rectangle.
`Rectangle` `frame()`
Returns a copy of this shape's framing rectangle.
`Rectangle` `frame(Rectangle target)`
Initializes the supplied rectangle with this shape's framing rectangle.
`double` `height()`
Returns the height of the framing rectangle.
`Point` `max()`
Returns the maximum x,y-coordinate of the framing rectangle.
`double` `maxX()`
Returns the maximum x-coordinate of the framing rectangle.
`double` `maxY()`
Returns the maximum y-coordinate of the framing rectangle.
`Point` `min()`
Returns the minimum x,y-coordinate of the framing rectangle.
`double` `minX()`
Returns the minimum x-coordinate of the framing rectangle.
`double` `minY()`
Returns the minimum y-coordinate of the framing rectangle.
`double` `width()`
Returns the width of the framing rectangle.
`double` `x()`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
`double` `y()`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
• ### Methods inherited from interface pythagoras.d.IShape

`bounds, bounds, contains, contains, contains, contains, intersects, intersects, isEmpty, pathIterator, pathIterator`
• ### Method Detail

• #### x

`double x()`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
• #### y

`double y()`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
• #### width

`double width()`
Returns the width of the framing rectangle.
• #### height

`double height()`
Returns the height of the framing rectangle.
• #### min

`Point min()`
Returns the minimum x,y-coordinate of the framing rectangle.
• #### minX

`double minX()`
Returns the minimum x-coordinate of the framing rectangle.
• #### minY

`double minY()`
Returns the minimum y-coordinate of the framing rectangle.
• #### max

`Point max()`
Returns the maximum x,y-coordinate of the framing rectangle.
• #### maxX

`double maxX()`
Returns the maximum x-coordinate of the framing rectangle.
• #### maxY

`double maxY()`
Returns the maximum y-coordinate of the framing rectangle.
• #### center

`Point center()`
Returns the center of the framing rectangle.
• #### centerX

`double centerX()`
Returns the x-coordinate of the center of the framing rectangle.
• #### centerY

`double centerY()`
Returns the y-coordinate of the center of the framing rectangle.
• #### frame

`Rectangle frame()`
Returns a copy of this shape's framing rectangle.
• #### frame

`Rectangle frame(Rectangle target)`
Initializes the supplied rectangle with this shape's framing rectangle.
Returns:
the supplied rectangle.