As you have already concluded:
The description of the function refers to degrees east of the true North. The true North is geographic, which is somewhat different from the North, determined by terrestrial magnetism (south magnetic pole).
So, if you are moving east, your foot is 90 degrees, if you are moving south, it is +180 or - 180, if you are moving west, it is -90 degrees.
source share