Package choreo.trajectory
Class EventMarker
java.lang.Object
choreo.trajectory.EventMarker
A marker for an event in a trajectory.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
GSON deserializer for choreolib event markers -
Field Summary
-
Constructor Summary
ConstructorDescriptionEventMarker
(double timestamp, String event) Constructs an EventMarker with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
offsetBy
(double timestampOffset) Returns a new EventMarker with the timestamp offset by the specified amount.
-
Field Details
-
timestamp
The timestamp of the event. -
event
The event.
-
-
Constructor Details
-
EventMarker
Constructs an EventMarker with the specified parameters.- Parameters:
timestamp
- The timestamp of the event.event
- The event.
-
-
Method Details