Expand description
Tempa is a no_std temporal system for animation and simulation, providing time, duration, time ranges, frame rates, and deterministic frame-index stepping.
Modules§
Structs§
- Duration
- Represents a continuous span of time in seconds, describing the length between two time points.
- Frame
Index - Represents a discrete, non-negative frame position in a timeline, typically used as an integer index into a frame-based sequence.
- Frame
Rate - Represents a temporal frequency in frames per second (FPS), defining how many discrete frames occur within one second of time.
- Frame
Stepper - Represents a stepper that can iterate through frames in a timeline.
- Time
- Represents a continuous point in time measured in seconds, used as the primary unit for temporal calculations.
- Time
Range - Represents a half-open or inclusive interval between two Time
values, defining a bounded segment of time with a start and end.
Traits§
- Float
Scalar - Time compatible floating point scalar type.
- HasDuration
- Trait for entities that have a duration, allowing for retrieval of the duration value.
- HasTime
Range - Trait for entities that have a time range, allowing for retrieval of the range and its duration.