Files
pplus-library/modules/md/minimum-image/ref/python/plain.py
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

6 lines
91 B
Python

import math
def minimum_image(dx, box):
return dx - box * math.floor(dx / box + 0.5)