How Astrocartography Works – Mathematical Foundations and Practical Applications