Now calculate integer coordinates.