pythagoras.d

Interface ICubicCurve

• Method Summary

All Methods
Modifier and Type Method and Description
`CubicCurve` `clone()`
Returns a mutable copy of this curve.
`Point` `ctrlP1()`
Returns a copy of the first control point of this curve.
`Point` `ctrlP2()`
Returns a copy of the second control point of this curve.
`double` `ctrlX1()`
Returns the x-coordinate of the first control point.
`double` `ctrlX2()`
Returns the x-coordinate of the second control point.
`double` `ctrlY1()`
Returns the y-coordinate of the first control point.
`double` `ctrlY2()`
Returns the y-coordinate of the second control point.
`double` `flatness()`
Returns the flatness (maximum distance of a control point from the line connecting the end points) of this curve.
`double` `flatnessSq()`
Returns the square of the flatness (maximum distance of a control point from the line connecting the end points) of this curve.
`Point` `p1()`
Returns a copy of the starting point of this curve.
`Point` `p2()`
Returns a copy of the ending point of this curve.
`void` ```subdivide(CubicCurve left, CubicCurve right)```
Subdivides this curve and stores the results into `left` and `right`.
`double` `x1()`
Returns the x-coordinate of the start of this curve.
`double` `x2()`
Returns the x-coordinate of the end of this curve.
`double` `y1()`
Returns the y-coordinate of the start of this curve.
`double` `y2()`
Returns the y-coordinate of the end of this curve.
• Methods inherited from interface pythagoras.d.IShape

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

• x1

`double x1()`
Returns the x-coordinate of the start of this curve.
• y1

`double y1()`
Returns the y-coordinate of the start of this curve.
• ctrlX1

`double ctrlX1()`
Returns the x-coordinate of the first control point.
• ctrlY1

`double ctrlY1()`
Returns the y-coordinate of the first control point.
• ctrlX2

`double ctrlX2()`
Returns the x-coordinate of the second control point.
• ctrlY2

`double ctrlY2()`
Returns the y-coordinate of the second control point.
• x2

`double x2()`
Returns the x-coordinate of the end of this curve.
• y2

`double y2()`
Returns the y-coordinate of the end of this curve.
• p1

`Point p1()`
Returns a copy of the starting point of this curve.
• ctrlP1

`Point ctrlP1()`
Returns a copy of the first control point of this curve.
• ctrlP2

`Point ctrlP2()`
Returns a copy of the second control point of this curve.
• p2

`Point p2()`
Returns a copy of the ending point of this curve.
• flatnessSq

`double flatnessSq()`
Returns the square of the flatness (maximum distance of a control point from the line connecting the end points) of this curve.
• flatness

`double flatness()`
Returns the flatness (maximum distance of a control point from the line connecting the end points) of this curve.
• subdivide

```void subdivide(CubicCurve left,
CubicCurve right)```
Subdivides this curve and stores the results into `left` and `right`.
• clone

`CubicCurve clone()`
Returns a mutable copy of this curve.