Skip to main content

Function: nearestCopy()

nearestCopy(x, ref, period): number

Defined in: unwrap.ts:19

Shift x by whole periods to the copy nearest ref.

Parameters​

x​

number

A value in any copy.

ref​

number

The value to land next to.

period​

number

The period of the value, such as 360 for a longitude.

Returns​

number