Three-dimensional coordinate conversion program