Function anim::sample_times

Function Documentation

SampleTimes anim::sample_times(double start_time, double end_time, int num_samples, RangeEnd range_end = RangeEnd::Exclusive)

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

The step is the span divided by num_samples for a half-open range, or by one less for a closed one, matching evaluate_range() exactly.

Throws:

std::invalid_argument – if num_samples is negative, or if start_time is after end_time.