paiting entities - take rotations into account - closes #326

pos_b can be const reference