This is a fairly straightforward way. Note, that there is a slight difference in getting the values in degrees VS converting to the more widely used “percent”, (at least in landscape architecture).