FFFDLattice::ClosestLatticePosition

Clamp the given index to [0, Dims] and return the current lattice point position at the clamped index.