LineSegment2D

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

Line segment starting in the origin in the direction of the x axis. It has a given length and is moved by means of the affineSequence.

Parameters

length

length of line segment

Constructors

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

Types

Link copied to clipboard
object Companion

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
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
fun toLineSegment2DCM(): Segment

Returns adapted line segment class of Commons Math.