make coordinates resolution independent (normalized to 0..1)