A pendulum could have a tethered mass such as a passenger pod tethered from a fulcrum at any height halfway A and B.
Now if you remove the tether and substitute a downramp, long fat section and then an upramp, you can cover long distances at high speed. Due to start and finish being at the same...