public Point3i getCellIndices ( Tuple3d pt ) { Point3d p = new Point3d ( pt ) ; this . transfToCrystal ( p ) ; int x = ( int ) Math . floor ( p . x ) ; int y = ( int ) Math . floor ( p . y ) ; int z = ( int ) Math . floor ( p . z ) ; return new Point3i ( x , y , z ) ; }
Get the index of a unit cell to which the query point belongs .