calcMinimumImage(self,
ref_pos,
pos)
|
|
Calculates the minimum image of a position vector pos
relative to another position vector ref_pos .
pos and ref_pos can also be arrays of 3D
vectors. In this case, they must be of the same size, and minimum images
will be calculated for each element in pos and
ref_pos .
- Parameters:
ref_pos (numpy.ndarray . Either 1x3 or Nx3.) - Reference position vector(s)
pos (numpy.ndarray . Either 1x3 or Nx3.) - Position vector(s) of which we will calculate the minimum image.
- Returns:
numpy.ndarray
- The position vector(s) of the mininum image. This function does
NOT mutate any of the input vectors.
|