next up previous contents index
Next: Function direction_cosines_min_image Up: Module atoms_module Previous: Function cosine_neighbour   Contents   Index

Function direction_cosines


\begin{boxedminipage}{\textwidth}
\begin{verbatim}d = direction_cosines(this,i,j,shift)\end{verbatim}
\end{boxedminipage}

Given two atoms $i$ and $j$ and a shift returns the direction cosines of the differnece vector from $i$ to $j$.

this -- type(Atoms), intent(in)

i, j -- integer, intent(in)

shift -- integer, intent(in), dimension(3)

Return value -- real(dp), dimension(3)

direction_cosines_min_image function

gabor 2009-06-30