Arc2D

class Arc2D(val curvature: Double, length: Double, val tolerance: Double, val affineSequence: AffineSequence2D = AffineSequence2D.EMPTY, endBoundType: BoundType = BoundType.OPEN) : AbstractCurve2D

Represents an arc of a circle with a certain curvature which starts at the coordinates origin and continues in the direction of the x axis. See the wikipedia article on an arc.

Parameters

curvature

positive curvature: counter clockwise; negative curvature: clockwise

Constructors

Link copied to clipboard
constructor(curvature: Double, 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

the center of the arc is located on the y axis to enable an arc starting in the origin

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

definable domain

Link copied to clipboard

end angle of the arc relative to the center

Link copied to clipboard

BoundType at the end of the curve

Link copied to clipboard

length of the curve

Link copied to clipboard

start angle of the arc relative to the center

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 override fun toString(): String