Precalculate coordinates offset.