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