yt.utilities.math_utils.
periodic_dist
(a, b, period, periodicity=(True, True, True))[source]¶Find the Euclidean periodic distance between two sets of points.
Parameters: | a : array or list
b : array of list
period : float or array or list
periodicity : An ndim-element tuple of booleans
|
---|
Examples
>>> a = [0.1, 0.1, 0.1]
>>> b = [0.9, 0,9, 0.9]
>>> period = 1.
>>> dist = periodic_dist(a, b, 1.)
>>> dist
0.346410161514