Calculating local coordinates of items.