mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibj] Trajectory: Add zero-arg constructor (#2513)
C++ already has this.
This commit is contained in:
committed by
GitHub
parent
38ad790612
commit
6be1b95241
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user