A robust TypeScript implementation of homography-based transformation between 2D planes, ideal for computer vision and image mapping