pythagoras.f

## Class Arc

• ### Field Summary

Fields
Modifier and Type Field and Description
`float` `extent`
The angular extent of this arc.
`float` `height`
The height of this arc's framing rectangle.
`float` `start`
The starting angle of this arc.
`float` `width`
The width of this arc's framing rectangle.
`float` `x`
The x-coordinate of this arc's framing rectangle.
`float` `y`
The y-coordinate of this arc's framing rectangle.
• ### Fields inherited from interface pythagoras.f.IArc

`CHORD, OPEN, PIE`
• ### Constructor Summary

Constructors
Constructor and Description
`Arc()`
Creates an open arc with frame (0x0+0+0) and zero angles.
```Arc(float x, float y, float width, float height, float start, float extent, int type)```
Creates an arc of the specified type with the specified framing rectangle, starting angle and angular extent.
`Arc(int type)`
Creates an arc of the specified type with frame (0x0+0+0) and zero angles.
```Arc(IRectangle bounds, float start, float extent, int type)```
Creates an arc of the specified type with the supplied framing rectangle, starting angle and angular extent.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`float` `angleExtent()`
Returns the angular extent of this arc.
`float` `angleStart()`
Returns the starting angle of this arc.
`int` `arcType()`
Returns the type of this arc: `IArc.OPEN`, etc.
`float` `height()`
Returns the height of the framing rectangle.
`void` `setAngleExtent(float extent)`
Sets the angular extent of this arc to the specified value.
`void` ```setAngles(float x1, float y1, float x2, float y2)```
Sets the starting angle and angular extent of this arc using two sets of coordinates.
`void` ```setAngles(XY p1, XY p2)```
Sets the starting angle and angular extent of this arc using two sets of coordinates.
`void` `setAngleStart(float start)`
Sets the starting angle of this arc to the specified value.
`void` `setAngleStart(XY point)`
Sets the starting angle of this arc to the angle defined by the supplied point relative to the center of this arc.
`void` ```setArc(float x, float y, float width, float height, float start, float extent, int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
`void` `setArc(IArc arc)`
Sets the location, size, angular extents, and closure type of this arc to the same values as the supplied arc.
`void` ```setArc(IRectangle rect, float start, float extent, int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
`void` ```setArc(XY point, IDimension size, float start, float extent, int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
`void` ```setArcByCenter(float x, float y, float radius, float start, float extent, int type)```
Sets the location, size, angular extents, and closure type of this arc based on the specified values.
`void` ```setArcByTangent(XY p1, XY p2, XY p3, float radius)```
Sets the location, size, angular extents, and closure type of this arc based on the specified values.
`void` `setArcType(int type)`
Sets the type of this arc to the specified value.
`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.AbstractArc

`bounds, clone, contains, contains, containsAngle, endPoint, endPoint, intersects, isEmpty, pathIterator, startPoint, startPoint`
• ### Methods inherited from class pythagoras.f.RectangularShape

`bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, 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, contains, contains, intersects, pathIterator`
• ### Field Detail

• #### x

`public float x`
The x-coordinate of this arc's framing rectangle.
• #### y

`public float y`
The y-coordinate of this arc's framing rectangle.
• #### width

`public float width`
The width of this arc's framing rectangle.
• #### height

`public float height`
The height of this arc's framing rectangle.
• #### start

`public float start`
The starting angle of this arc.
• #### extent

`public float extent`
The angular extent of this arc.
• ### Constructor Detail

• #### Arc

`public Arc()`
Creates an open arc with frame (0x0+0+0) and zero angles.
• #### Arc

`public Arc(int type)`
Creates an arc of the specified type with frame (0x0+0+0) and zero angles.
• #### Arc

```public Arc(float x,
float y,
float width,
float height,
float start,
float extent,
int type)```
Creates an arc of the specified type with the specified framing rectangle, starting angle and angular extent.
• #### Arc

```public Arc(IRectangle bounds,
float start,
float extent,
int type)```
Creates an arc of the specified type with the supplied framing rectangle, starting angle and angular extent.
• ### Method Detail

• #### arcType

`public int arcType()`
Description copied from interface: `IArc`
Returns the type of this arc: `IArc.OPEN`, etc.
Specified by:
`arcType` in interface `IArc`
• #### 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`
• #### angleStart

`public float angleStart()`
Description copied from interface: `IArc`
Returns the starting angle of this arc.
Specified by:
`angleStart` in interface `IArc`
• #### angleExtent

`public float angleExtent()`
Description copied from interface: `IArc`
Returns the angular extent of this arc.
Specified by:
`angleExtent` in interface `IArc`
• #### setArcType

`public void setArcType(int type)`
Sets the type of this arc to the specified value.
• #### setAngleStart

`public void setAngleStart(float start)`
Sets the starting angle of this arc to the specified value.
• #### setAngleExtent

`public void setAngleExtent(float extent)`
Sets the angular extent of this arc to the specified value.
• #### setArc

```public void setArc(float x,
float y,
float width,
float height,
float start,
float extent,
int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
• #### setArc

```public void setArc(XY point,
IDimension size,
float start,
float extent,
int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
• #### setArc

```public void setArc(IRectangle rect,
float start,
float extent,
int type)```
Sets the location, size, angular extents, and closure type of this arc to the specified values.
• #### setArc

`public void setArc(IArc arc)`
Sets the location, size, angular extents, and closure type of this arc to the same values as the supplied arc.
• #### setArcByCenter

```public void setArcByCenter(float x,
float y,
float start,
float extent,
int type)```
Sets the location, size, angular extents, and closure type of this arc based on the specified values.
• #### setArcByTangent

```public void setArcByTangent(XY p1,
XY p2,
XY p3,
Sets the location, size, angular extents, and closure type of this arc based on the specified values.
• #### setAngleStart

`public void setAngleStart(XY point)`
Sets the starting angle of this arc to the angle defined by the supplied point relative to the center of this arc.
• #### setAngles

```public void setAngles(float x1,
float y1,
float x2,
float y2)```
Sets the starting angle and angular extent of this arc using two sets of coordinates. The first set of coordinates is used to determine the angle of the starting point relative to the arc's center. The second set of coordinates is used to determine the angle of the end point relative to the arc's center. The arc will always be non-empty and extend counterclockwise from the first point around to the second point.
• #### setAngles

```public void setAngles(XY p1,
XY p2)```
Sets the starting angle and angular extent of this arc using two sets of coordinates. The first set of coordinates is used to determine the angle of the starting point relative to the arc's center. The second set of coordinates is used to determine the angle of the end point relative to the arc's center. The arc will always be non-empty and extend counterclockwise from the first point around to the second point.
• #### 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`