[wpilibj] Trajectory: Add zero-arg constructor (#2513)

C++ already has this.
This commit is contained in:
Prateek Machiraju
2020-05-29 12:18:42 -04:00
committed by GitHub
parent 38ad790612
commit 6be1b95241

View File

@@ -26,6 +26,14 @@ public class Trajectory {
private final double m_totalTimeSeconds;
private final List<State> m_states;
/**
* Constructs an empty trajectory.
*/
public Trajectory() {
m_states = new ArrayList<>();
m_totalTimeSeconds = 0.0;
}
/**
* Constructs a trajectory from a vector of states.
*