When you click on the link "pixel_to_bmap" in 3dgs_snake's post you see related keywords and instructions at the bottom of the page. This is oftentimes very helpful, and here it is, too (you are looking for "pixel_for_vec").
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual