Spatial Direction Reasoning Based on the Operations between Lattice Arrays