Class TrajectorySample
java.lang.Object
org.wpilib.math.trajectory.TrajectorySample
- All Implemented Interfaces:
ProtobufSerializable, StructSerializable, WPISerializable
- Direct Known Subclasses:
HolonomicSample
Represents a single sample in a trajectory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrajectorySampleProtoBase proto for serialization.static final TrajectorySampleStructBase struct for serialization.doubleThe time of the sample relative to the trajectory start, in seconds. -
Constructor Summary
ConstructorsConstructorDescriptionTrajectorySample(double time) Constructs a TrajectorySample.TrajectorySample(Time time) Constructs a TrajectorySample. -
Method Summary
-
Field Details
-
time
public double timeThe time of the sample relative to the trajectory start, in seconds. -
struct
Base struct for serialization. -
proto
Base proto for serialization.
-
-
Constructor Details
-
TrajectorySample
public TrajectorySample(double time) Constructs a TrajectorySample.- Parameters:
time- The time of the sample relative to the trajectory start, in seconds.
-
TrajectorySample
Constructs a TrajectorySample.- Parameters:
time- The time of the sample relative to the trajectory start.
-
-
Method Details
-
hashCode
-
equals
-