Function anim::sample_times_by_rate

Function Documentation

SampleTimes anim::sample_times_by_rate(double start_time, double end_time, double sample_rate, RangeEnd range_end = RangeEnd::Exclusive)

Times that Channel::evaluate_range_by_rate() would sample an arbitrary range at.

The step is one sample period, and the count is the one Channel::num_samples() reports for the same range and range_end.

Throws:

std::invalid_argument – if sample_rate is not positive, or if start_time is after end_time.