class Arc2D: 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.

Fields

Name Description
val domain: Range<Double>

definable domain

val center: Vector2D

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

val startAngle: Rotation2D

start angle of the arc relative to the center

val endAngle: Rotation2D

end angle of the arc relative to the center

val curvature: Double

positive curvature: counter clockwise; negative curvature: clockwise

val tolerance: Double

tolerable threshold value

val affineSequence: AffineSequence2D

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

Constructors

<init>

constructor(curvature: Double, length: Double, tolerance: Double, affineSequence: AffineSequence2D, endBoundType: BoundType)

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

Name Description
curvature: Double

positive curvature: counter clockwise; negative curvature: clockwise

length: Double
tolerance: Double
affineSequence: AffineSequence2D
endBoundType: BoundType

Methods

calculatePointLocalCSUnbounded

protected fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): Result<Vector2D, IllegalArgumentException>

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, IllegalArgumentException>

point in cartesian coordinates

calculateRotationLocalCSUnbounded

protected fun calculateRotationLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): Result<Rotation2D, IllegalArgumentException>

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, IllegalArgumentException>

orientation tangential to this curve

toString

fun toString(): String

ReturnValue

Name Description
String