periodic_wrap¶
- periodic_wrap(point, reference, period=6.283185307179586)[source]¶
Wrap point to the closest periodic copy relative to reference.
For each element, the returned value satisfies
|wrapped[i] - reference[i]| <= period / 2(up to floating-point rounding). This is the element-wise equivalent oforqviz’srelative_periodic_wrap.