This is a mathematical PHP class API. You can calculate missing legs in rectangular triangulars.