Skip to main content

Crate tempa

Crate tempa 

Source
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§

conversion

Structs§

Duration
Represents a continuous span of time in seconds, describing the length between two time points.
FrameIndex
Represents a discrete, non-negative frame position in a timeline, typically used as an integer index into a frame-based sequence.
FrameRate
Represents a temporal frequency in frames per second (FPS), defining how many discrete frames occur within one second of time.
FrameStepper
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.
TimeRange
Represents a half-open or inclusive interval between two Time values, defining a bounded segment of time with a start and end.

Traits§

FloatScalar
Time compatible floating point scalar type.
HasDuration
Trait for entities that have a duration, allowing for retrieval of the duration value.
HasTimeRange
Trait for entities that have a time range, allowing for retrieval of the range and its duration.