diff --git a/polymerist/maths/lattices/coordops.py b/polymerist/maths/lattices/coordops.py index 46ac9b2..50319b2 100644 --- a/polymerist/maths/lattices/coordops.py +++ b/polymerist/maths/lattices/coordops.py @@ -38,6 +38,10 @@ def __init__(self, points : np.ndarray[Shape[M, N], T]) -> None: self.points = points self.n_points, self.n_dims = points.shape + def clone(self) -> 'BoundingBox': + '''Create a copy of the current bounding box''' + return self.__class__(self.points) + @property def dimensions(self) -> np.ndarray[Shape[N], int]: '''The side lengths of the bounding box along each dimension'''