class ParametricCubicCurve2D: AbstractCurve2D

Represents a parametric cubic curve of the following form: x = fx(t) = x0 + x1t + x2t^2 + x3t^3y = fy(t) = y0 + y1t + y2t^2 + y3t^3

Fields

Name Description
val domain: Range<Double>

definable domain

val tolerance: Double

tolerable threshold value

val affineSequence: AffineSequence2D

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

Constructors

<init>

constructor(coefficientsX: DoubleArray, coefficientsY: DoubleArray, length: Double, tolerance: Double, affineSequence: AffineSequence2D, endBoundType: BoundType)

Represents a parametric cubic curve of the following form: x = fx(t) = x0 + x1t + x2t^2 + x3t^3y = fy(t) = y0 + y1t + y2t^2 + y3t^3

Parameters

Name Description
coefficientsX: DoubleArray

coefficients for fx(t), whereby coefficientsX0 corresponds to x0

coefficientsY: DoubleArray

coefficients for fy(t), whereby coefficientsY0 corresponds to y0

length: Double

length of parametric curve which is used for constructing the domain

tolerance: Double
affineSequence: AffineSequence2D
endBoundType: BoundType

Methods

calculatePointLocalCSUnbounded

protected fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): 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: CurveRelativePoint1D

point in curve relative coordinates

ReturnValue

Name Description
Result<Vector2D, Exception>

point in cartesian coordinates

calculateRotationLocalCSUnbounded

protected fun calculateRotationLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): 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: CurveRelativePoint1D

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