Policy that reflects (folds) the value at both boundaries.

Synopsis

Declared in <mp‐units/overflow_policies.h>

template<Quantity Q>
struct reflect_in_range;

Description

Values that exceed [min, max]are "bounced back" from the boundary. For example, with latitude[‐90, 90]: 91 ‐> 89, 180 ‐> 0, 270 ‐> ‐90.

Member Functions

Name

operator()

Data Members

Name

max

min

Created with MrDocs