public class MotionSegment
Segment of a motion profile with constant acceleration.
public MotionSegment(@NotNull
MotionState start,
double dt)
Segment of a motion profile with constant acceleration.
start - start motion statedt - time delta@NotNull public MotionState get(double t)
Returns the class MotionState at time t.
class MotionState,
t@NotNull public MotionState end()
Returns the class MotionState at the end of the segment (time dt).
class MotionState@NotNull public MotionSegment reversed()
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.
@NotNull public MotionSegment flipped()
Returns a flipped (negated) version of the segment.
@NotNull public java.lang.String toString()
@NotNull public MotionState getStart()
start motion state
public double getDt()
time delta