Convert to use new AngleMath functions to fix calculations.