public void transfToOriginCell ( Tuple3d [ ] points , Tuple3d reference ) { reference = new Point3d ( reference ) ; //clone transfToCrystal ( reference ) ; int x = ( int ) Math . floor ( reference . x ) ; int y = ( int ) Math . floor ( reference . y ) ; int z = ( int ) Math . floor ( reference . z ) ; for ( Tuple3d point : points ) { transfToCrystal ( point ) ; point . x -= x ; point . y -= y ; point . z -= z ; transfToOrthonormal ( point ) ; } }
Converts a set of points so that the reference point falls in the unit cell .