Math behind 'Zoom Extend'

Hi @flokart,

Here is come C++ code I posted a while back.

– Dale