= 32) { // This combines the rest of the steps together. $out .= chr((32 | ($work & 31)) + 63); $work >>= 5; } // Last chunk doesn't get ORed with 32. $out .= chr(($work & 31) + 63); return $out; } function gmap_polyutil_distance_from_line() { // http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html }