mbuild_polybuild.cg_monomers.betaine.Betaine.min_periodic_distance¶
- Betaine.min_periodic_distance(xyz0, xyz1)¶
Vectorized distance calculation considering minimum image.
Only implemented for orthorhombic simulation boxes.
- Parameters:
xyz0 (np.ndarray, shape=(3,), dtype=float) – Coordinates of first point
xyz1 (np.ndarray, shape=(3,), dtype=float) – Coordinates of second point
- Returns:
Vectorized distance between the two points following minimum image convention
- Return type:
float