pythagoras.f

## Class Ellipse

• ### Field Summary

Fields
Modifier and Type Field and Description
`float` `height`
The height of the framing rectangle.
`float` `width`
The width of the framing rectangle.
`float` `x`
The x-coordinate of the framing rectangle.
`float` `y`
The y-coordinate of the framing rectangle.
• ### Constructor Summary

Constructors
Constructor and Description
`Ellipse()`
Creates an ellipse with framing rectangle (0x0+0+0).
```Ellipse(float x, float y, float width, float height)```
Creates an ellipse with the specified framing rectangle.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`float` `height()`
Returns the height of the framing rectangle.
`void` ```setFrame(float x, float y, float width, float height)```
Sets the location and size of the framing rectangle of this shape to the specified values.
`float` `width()`
Returns the width of the framing rectangle.
`float` `x()`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
`float` `y()`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
• ### Methods inherited from class pythagoras.f.AbstractEllipse

`clone, contains, contains, intersects, pathIterator`
• ### Methods inherited from class pythagoras.f.RectangularShape

`bounds, bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, isEmpty, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal`
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Methods inherited from interface pythagoras.f.IRectangularShape

`center, centerX, centerY, frame, frame, max, maxX, maxY, min, minX, minY`
• ### Methods inherited from interface pythagoras.f.IShape

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

• #### x

`public float x`
The x-coordinate of the framing rectangle.
• #### y

`public float y`
The y-coordinate of the framing rectangle.
• #### width

`public float width`
The width of the framing rectangle.
• #### height

`public float height`
The height of the framing rectangle.
• ### Constructor Detail

• #### Ellipse

`public Ellipse()`
Creates an ellipse with framing rectangle (0x0+0+0).
• #### Ellipse

```public Ellipse(float x,
float y,
float width,
float height)```
Creates an ellipse with the specified framing rectangle.
• ### Method Detail

• #### x

`public float x()`
Description copied from interface: `IRectangularShape`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
Specified by:
`x` in interface `IRectangularShape`
• #### y

`public float y()`
Description copied from interface: `IRectangularShape`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
Specified by:
`y` in interface `IRectangularShape`
• #### width

`public float width()`
Description copied from interface: `IRectangularShape`
Returns the width of the framing rectangle.
Specified by:
`width` in interface `IRectangularShape`
• #### height

`public float height()`
Description copied from interface: `IRectangularShape`
Returns the height of the framing rectangle.
Specified by:
`height` in interface `IRectangularShape`
• #### setFrame

```public void setFrame(float x,
float y,
float width,
float height)```
Description copied from class: `RectangularShape`
Sets the location and size of the framing rectangle of this shape to the specified values.
Specified by:
`setFrame` in class `RectangularShape`