CubicCurve2D

class CubicCurve2D(val coefficients: DoubleArray, length: Double, val tolerance: Double, val affineSequence: AffineSequence2D = AffineSequence2D.EMPTY, endBoundType: BoundType = BoundType.OPEN) : AbstractCurve2D

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

Parameters

coefficients

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

length

length of cubic curve which is used for constructing the domain

Constructors

Link copied to clipboard
constructor(coefficients: DoubleArray, length: Double, tolerance: Double, affineSequence: AffineSequence2D = AffineSequence2D.EMPTY, endBoundType: BoundType = BoundType.OPEN)

Properties

Link copied to clipboard
open override val affineSequence: AffineSequence2D

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

Link copied to clipboard
Link copied to clipboard
open override val domain: Range<Double>

definable domain

Link copied to clipboard

BoundType at the end of the curve

Link copied to clipboard

length of the curve

Link copied to clipboard
open override val tolerance: Double

tolerable threshold value

Functions

Link copied to clipboard

Returns the global point in the global cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system. An error is returned, if the requested point is not within this curve's domain.

Link copied to clipboard

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

Link copied to clipboard

Returns the point in the local cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system. An error is returned, if the requested point is not within this curve's domain.

Link copied to clipboard

Returns a pose at the position along the curve curveRelativePoint.

Link copied to clipboard

Returns a pose at the position along the curve curveRelativePoint. An error is returned, if the requested point is not within this curve's domain.

Link copied to clipboard

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

Link copied to clipboard

Returns the orientation in the global cartesian coordinate system that is tangential to this curve at a given point which is given in a curve relative coordinate system. An error is returned, if the requested point is not within this curve's domain.

Link copied to clipboard

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. An error is returned, if the requested point is not within this curve's domain.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int