International
Tables for
Crystallography
Volume G
Definition and exchange of crystallographic data
Edited by J. R. Hester and B. McMahon

International Tables for Crystallography (2026). Vol. G. Early view chapter
https://doi.org/10.1107/97809553602060001011

Chapter 4.2 Core dictionary (coreCIF)


Index

Core dictionary version 3.3.0

_function.Closest

Name:
_function.Closest

Definition:

   
    The function
              d  =  Closest( v, w )

    returns the cell translation vector required to obtain the
    closest cell-translated occurrence of the vector V to the vector
    W.

Type: Real

Values appear in Matrix context.

Dimension: [3]

Units: none

Evaluation method:

    Function Closest( v :[Matrix, Real],   # coord vector to be cell translated
                      w :[Matrix, Real]) { # target vector

           d  =  v - w
           Closest  =  Int( Mod( 99.5 + d, 1.0 ) - d )
    }

Category:
function








































to end of page
to top of page