cell.volume is a generic function to compute the volume of a unit cell.For objects of class cryst1, the cell.coords function is called to build a matrix containing the cartesian coordinates of the lattice vectors. Then, these vector are used to compute the volume of the unit cell.
For objects of class pdb, their cryst1 component is used.