pythagoras.d

## Interface IArc

• ### Field Summary

Fields
Modifier and Type Field and Description
`static int` `CHORD`
An arc type indicating a closed curve, connected by a straight line from the starting to the ending point of the arc.
`static int` `OPEN`
An arc type indicating a simple, unconnected curve.
`static int` `PIE`
An arc type indicating a closed curve, connected by a line from the starting point of the arc to the center of the circle defining the arc, and another straight line from that center to the ending point of the arc.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`double` `angleExtent()`
Returns the angular extent of this arc.
`double` `angleStart()`
Returns the starting angle of this arc.
`int` `arcType()`
Returns the type of this arc: `OPEN`, etc.
`Arc` `clone()`
Returns a mutable copy of this arc.
`boolean` `containsAngle(double angle)`
Returns whether the specified angle is within the angular extents of this arc.
`Point` `endPoint()`
Returns the intersection of the ray from the center (defined by the starting angle plus the angular extent of the arc) and the elliptical boundary of the arc.
`Point` `endPoint(Point target)`
Writes the intersection of the ray from the center (defined by the starting angle plus the angular extent of the arc) and the elliptical boundary of the arc into `target`.
`Point` `startPoint()`
Returns the intersection of the ray from the center (defined by the starting angle) and the elliptical boundary of the arc.
`Point` `startPoint(Point target)`
Writes the intersection of the ray from the center (defined by the starting angle) and the elliptical boundary of the arc into `target`.
• ### Methods inherited from interface pythagoras.d.IRectangularShape

`center, centerX, centerY, frame, frame, height, max, maxX, maxY, min, minX, minY, width, x, y`
• ### Methods inherited from interface pythagoras.d.IShape

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

• #### OPEN

`static final int OPEN`
An arc type indicating a simple, unconnected curve.
Constant Field Values
• #### CHORD

`static final int CHORD`
An arc type indicating a closed curve, connected by a straight line from the starting to the ending point of the arc.
Constant Field Values
• #### PIE

`static final int PIE`
An arc type indicating a closed curve, connected by a line from the starting point of the arc to the center of the circle defining the arc, and another straight line from that center to the ending point of the arc.
Constant Field Values
• ### Method Detail

• #### arcType

`int arcType()`
Returns the type of this arc: `OPEN`, etc.
• #### angleStart

`double angleStart()`
Returns the starting angle of this arc.
• #### angleExtent

`double angleExtent()`
Returns the angular extent of this arc.
• #### startPoint

`Point startPoint()`
Returns the intersection of the ray from the center (defined by the starting angle) and the elliptical boundary of the arc.
• #### startPoint

`Point startPoint(Point target)`
Writes the intersection of the ray from the center (defined by the starting angle) and the elliptical boundary of the arc into `target`.
Returns:
the supplied point.
• #### endPoint

`Point endPoint()`
Returns the intersection of the ray from the center (defined by the starting angle plus the angular extent of the arc) and the elliptical boundary of the arc.
• #### endPoint

`Point endPoint(Point target)`
Writes the intersection of the ray from the center (defined by the starting angle plus the angular extent of the arc) and the elliptical boundary of the arc into `target`.
Returns:
the supplied point.
• #### containsAngle

`boolean containsAngle(double angle)`
Returns whether the specified angle is within the angular extents of this arc.
• #### clone

`Arc clone()`
Returns a mutable copy of this arc.