`class CubicCurve2D: AbstractCurve2D`

Represents a parametric cubic curve of the following form: y = f(x) = c0 + c1x + c2x^2 + c3*x^3

Fields

Name Description
`val domain: Range<Double>`

definable domain

`val coefficients: DoubleArray`

coefficients for f(t), whereby coefficients0 corresponds to c0

`val tolerance: Double`

tolerable threshold value

`val affineSequence: AffineSequence2D`

List of affine transformation matrices to move and rotate the geometric object.

## Constructors

### <init>

`constructor(coefficients: DoubleArray, length: Double, tolerance: Double, affineSequence: AffineSequence2D, endBoundType: BoundType)`

Represents a parametric cubic curve of the following form: y = f(x) = c0 + c1x + c2x^2 + c3*x^3

Parameters

Name Description
`coefficients: DoubleArray`

coefficients for f(t), whereby coefficients0 corresponds to c0

`length: Double`

length of cubic curve which is used for constructing the domain

`tolerance: Double`
`affineSequence: AffineSequence2D`
`endBoundType: BoundType`

## Methods

### calculatePointLocalCSUnbounded

`protected fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativeVector1D): Result<Vector2D, Exception>`

Returns the point in the cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system.

Parameters

Name Description
`curveRelativePoint: CurveRelativeVector1D`

point in curve relative coordinates

ReturnValue

Name Description
`Result<Vector2D, Exception>`

point in cartesian coordinates

### calculateRotationLocalCSUnbounded

`protected fun calculateRotationLocalCSUnbounded(curveRelativePoint: CurveRelativeVector1D): Result<Rotation2D, Exception>`

Returns the orientation in the local cartesian coordinate system that is tangential to this curve at a given point which is given in a curve relative coordinate system.

Parameters

Name Description
`curveRelativePoint: CurveRelativeVector1D`

point in curve relative coordinates for which the orientation is to be calculated

ReturnValue

Name Description
`Result<Rotation2D, Exception>`

orientation tangential to this curve

### equals

`fun equals(other: Any?): Boolean`

Parameters

Name Description
`other: Any?`

ReturnValue

Name Description
`Boolean`

### hashCode

`fun hashCode(): Int`

ReturnValue

Name Description
`Int`