These factors are not taken into account at all. What for? The software only knows about these two functions (two points to which you get the distance, the sphere / spheroid and the anchor / projection coefficient).
To do this, you probably need to use the developed linestring, in which you will associate your point with n vertices, each of which will be a sign of Z.
Imagine this (free WKT): LINESTRING ((0,1,2), (0,2,3), (0,3,4), (0,10,15), (0,11, - 1)) .
Having asked the software to calculate the distance between each vertex and summarizing it, we consider the variations of the terrain. But without something like this, it is impossible to compare the bumps in the area.
All GIS software cannot by themselves determine what these disturbances are in the area, and therefore not take them into account.
linestrings () , ArcGIS ( ), ( ) , , NASA ( SRTM). , X Y Z, . , , , , . , Z .
?