cell

Functions

are_entities_inside_box

Checks whether all entities are within the bounds of a general parallelogram or triclinic box.

convert_cell_representation

Converts between cell representations for a box.

is_cell_orthogonal

Checks if a unit cell is orthogonal.

reduce_box_vectors

Reduces the box vectors of a general triclinic cell to those of a restricted one.

scale_coordinates

Scales the Cartesian coordinates of entities in a general parallelogram or triclinic box to get the fractional coordinates.

wrap_coordinates

Wraps the coordinates of entities into a general parallelogram or triclinic unit cell.