I want to measure the distance between two points on the horizon and vertical axis. Is any function on GIS can achieve this?
Note: many GIS distance calculators only calculate 2D distances either on the ellipsoid surface or a planar surface.
Subtract the first point's elevation (z) from the second point's and take the absolute value. That's your vertical distance.
Create a third point that has the elevation of point 1 but the xy (or lat-lon) coordinates of point 2.
Run a distance calculator on point 1 and point 3 to get the horizontal distance.