core / com.acmerobotics.roadrunner.profile / MotionSegment / reversed

reversed

fun reversed(): MotionSegment (source)

Returns a reversed version of the segment. Note: it isn't possible to reverse a segment completely so this method only guarantees that the start and end velocities will be swapped.