Modify CalculatePGMAngles() and CalculateRayIntercepts() to return wave references.