core / com.acmerobotics.roadrunner.path / LineSegment

LineSegment

class LineSegment : ParametricCurve (source)

Parametric representation of a line.

Parameters

start - start vector

end - end vector

Constructors

<init>

Parametric representation of a line.

LineSegment(start: Vector2d, end: Vector2d)

Functions

length

Returns the length of the curve.

fun length(): Double

toString

fun toString(): String