class LineSegment2D: AbstractCurve2D
Fields
Name  Description 

val domain: override

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(length: Double, tolerance: Double, affineSequence: AffineSequence2D, endBoundType: BoundType)
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
Name  Description 

length: Double

length of line segment 
tolerance: Double


affineSequence: AffineSequence2D


endBoundType: BoundType

Methods
calculatePointLocalCSUnbounded
protected fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativeVector1D): Result
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: CurveRelativeVector1D

point in curve relative coordinates 
ReturnValue
Name  Description 

Result

point in cartesian coordinates 
calculateRotationLocalCSUnbounded
protected fun calculateRotationLocalCSUnbounded(curveRelativePoint: CurveRelativeVector1D): Result
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: CurveRelativeVector1D

point in curve relative coordinates for which the orientation is to be calculated 
ReturnValue
Name  Description 

Result

orientation tangential to this curve 
toLineSegment2DCM
fun toLineSegment2DCM(): ()
Returns adapted line segment class of Commons Math.
ReturnValue
Name  Description 

()

CompanionObject
LineSegment2D
class LineSegment2D: 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.
Methods
of
fun of(start: Vector2D, end: Vector2D, tolerance: Double): LineSegment2D
Creates a LineSegment2D based on a start and a end point.
Parameters
ReturnValue
Name  Description 

LineSegment2D

returned LineSegment2D comprises an affine transformation matrix 
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.