pythagoras.f

• ### Field Summary

Fields
Modifier and Type Field and Description
`float` `ctrlx`
The x-coordinate of the control point.
`float` `ctrly`
The y-coordinate of the control point.
`float` `x1`
The x-coordinate of the start of this curve.
`float` `x2`
The x-coordinate of the end of this curve.
`float` `y1`
The y-coordinate of the start of this curve.
`float` `y2`
The y-coordinate of the end of this curve.
• ### Constructor Summary

Constructors
Constructor and Description
`QuadCurve()`
Creates a quad curve with all points at (0,0).
```QuadCurve(float x1, float y1, float ctrlx, float ctrly, float x2, float y2)```
Creates a quad curve with the specified start, control, and end points.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`float` `ctrlX()`
Returns the x-coordinate of the control point.
`float` `ctrlY()`
Returns the y-coordinate of the control point.
`void` ```setCurve(float[] coords, int offset)```
Configures the start, control, and end points for this curve, using the values at the specified offset in the `coords` array.
`void` ```setCurve(float x1, float y1, float ctrlx, float ctrly, float x2, float y2)```
Configures the start, control, and end points for this curve.
`void` `setCurve(IQuadCurve curve)`
Configures the start, control, and end points for this curve to be the same as the supplied curve.
`void` ```setCurve(XY[] points, int offset)```
Configures the start, control, and end points for this curve, using the values at the specified offset in the `points` array.
`void` ```setCurve(XY p1, XY cp, XY p2)```
Configures the start, control, and end points for this curve.
`float` `x1()`
Returns the x-coordinate of the start of this curve.
`float` `x2()`
Returns the x-coordinate of the end of this curve.
`float` `y1()`
Returns the y-coordinate of the start of this curve.
`float` `y2()`
Returns the y-coordinate of the end of this curve.
• ### Methods inherited from class pythagoras.f.AbstractQuadCurve

`bounds, bounds, clone, contains, contains, contains, contains, ctrlP, flatness, flatnessSq, intersects, intersects, isEmpty, p1, p2, pathIterator, pathIterator, subdivide`
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### x1

`public float x1`
The x-coordinate of the start of this curve.
• #### y1

`public float y1`
The y-coordinate of the start of this curve.
• #### ctrlx

`public float ctrlx`
The x-coordinate of the control point.
• #### ctrly

`public float ctrly`
The y-coordinate of the control point.
• #### x2

`public float x2`
The x-coordinate of the end of this curve.
• #### y2

`public float y2`
The y-coordinate of the end of this curve.
• ### Constructor Detail

`public QuadCurve()`
Creates a quad curve with all points at (0,0).

```public QuadCurve(float x1,
float y1,
float ctrlx,
float ctrly,
float x2,
float y2)```
Creates a quad curve with the specified start, control, and end points.
• ### Method Detail

• #### setCurve

```public void setCurve(float x1,
float y1,
float ctrlx,
float ctrly,
float x2,
float y2)```
Configures the start, control, and end points for this curve.
• #### setCurve

```public void setCurve(XY p1,
XY cp,
XY p2)```
Configures the start, control, and end points for this curve.
• #### setCurve

```public void setCurve(float[] coords,
int offset)```
Configures the start, control, and end points for this curve, using the values at the specified offset in the `coords` array.
• #### setCurve

```public void setCurve(XY[] points,
int offset)```
Configures the start, control, and end points for this curve, using the values at the specified offset in the `points` array.
• #### setCurve

`public void setCurve(IQuadCurve curve)`
Configures the start, control, and end points for this curve to be the same as the supplied curve.
• #### x1

`public float x1()`
Description copied from interface: `IQuadCurve`
Returns the x-coordinate of the start of this curve.
Specified by:
`x1` in interface `IQuadCurve`
• #### y1

`public float y1()`
Description copied from interface: `IQuadCurve`
Returns the y-coordinate of the start of this curve.
Specified by:
`y1` in interface `IQuadCurve`
• #### ctrlX

`public float ctrlX()`
Description copied from interface: `IQuadCurve`
Returns the x-coordinate of the control point.
Specified by:
`ctrlX` in interface `IQuadCurve`
• #### ctrlY

`public float ctrlY()`
Description copied from interface: `IQuadCurve`
Returns the y-coordinate of the control point.
Specified by:
`ctrlY` in interface `IQuadCurve`
• #### x2

`public float x2()`
Description copied from interface: `IQuadCurve`
Returns the x-coordinate of the end of this curve.
Specified by:
`x2` in interface `IQuadCurve`
• #### y2

`public float y2()`
Description copied from interface: `IQuadCurve`
Returns the y-coordinate of the end of this curve.
Specified by:
`y2` in interface `IQuadCurve`