I am using the iPhone to capture slope information. There is a Level App that gives me the direction of slope and the slope percentage...see attached graphic. I want to programatically collect this information for my Unity App so I can collect slope information from the iPhone. 1. The Lat/Long give me location 2. The dataPointSlope/x, y, and z gives me gyroscope information about the slope https://developer.apple.com/documentation/coremotion/getting_raw_gyroscope_events 3. The iPhone also gives me True and Magnetic North heading information. What is the calculation for the slope percentage and direction using the Data Point Slope x,y,z and True/Magnetic North heading?