Interval¶
-
struct Interval¶
Represents a time interval over which a sensor exposure occurs.
Internally stores explicit start and end times. Provides named factory methods for the common parameterizations used in space imaging:
centered: midpoint time + total duration (e.g., “observe at T ± dt/2”)
from_start: start time + integration length
from_bounds: explicit start and end times
instant: a zero-duration snapshot at a single time
A zero-duration interval (start == end) implies no motion blur.
Public Functions
-
inline std::vector<Time> samples(std::size_t N) const¶
Create uniformly spaced Time samples across the interval.
-
inline units::Second duration() const¶
The total duration of the exposure in seconds.
Public Static Functions
-
static inline Interval from_centered(const Time ¢er, units::Second duration)¶
Construct an exposure interval centered on a given time.
- Parameters:
center – The midpoint of the exposure.
duration – The total integration time.
- Returns:
Interval spanning [center - duration/2, center + duration/2].