take transformations (i.e. rotation) into account