Geography utils

Does anyone know about some geography library in Monkey C? Things like: distance between two locations, distance between a line segment (given as 2 locations) and a location, etc.