Fixed. I renamed axis to xAxis for CalcXNormal to help clarify which axis is expected at that point.