A is the distance between the left sprite and the lens. B is the distance between the right one and the lens. Please change A and F, then B is going to be calculated. C implies the height of the left sprite. You can add a line if you change 'line' to 1.
This is completely original. I haven't searched the projects which made from the idea similar to this.