GPS coordinates (latitude, longitude, altitude) uses a speherical 3D modell. What you want is a transformation to a cartesian 3D Model.
For this case you can convert them into ECEF coordinates, this then are a x,y,z coordinates
For ECEF overview see ECEF